问题
Regarding Opensource Project: https://github.com/flowable/flowable-engine/tree/flowable-6.4.1
First, I didn’t find a built in ‘Escalation’ routine so I decided to build one (via BPMN). Let me know if there is a built in ‘Escalation’ flow.
- Pick Due Date: Form with a date widget
- Script to parse date to ISO
var dateStr = execution.getVariable(“pickDueDate”);
if (dateStr) {
var isoDate = (new Date(dateStr).toISOString());
execution.setVariable(“dueDate1”, isoDate);
}
else {
// this fails, dont know why
execution.setVariable(“dueDate1”, “”);
}
Real Task: Some dummy task
Handle Delay: Escalation routine to be invoked on delay
Problems:
This seems to work fine BUT I cannot change the due date. (after being set)
Due date becomes mandatory since I am unable to set empty string in variable dueDate1
Found https://community.alfresco.com/thread/217587-dynamically-setting-boundry-timer-date but when I set ${timeService.getDueDate(execution)} in an expression its not evaluated This does not solve for problem new due is before old due https://stackoverflow.com/a/30187976/1897935
来源:https://stackoverflow.com/questions/56471181/flowable-bpmn-workflow-extend-due-date-in-task-escalation