Flowable BPMN Workflow > Extend due date in Task Escalation

本秂侑毒 提交于 2019-12-24 19:03:22

问题


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.

  1. Pick Due Date: Form with a date widget
  2. 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”, “”);
}
  1. Real Task: Some dummy task

  2. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!