Activiti / Camunda change boundary timer with variable

前端 未结 3 1201
走了就别回头了
走了就别回头了 2021-01-01 04:32

I got a special question regarding timer boundary events on a user task in Activiti/Camunda:

When starting the process I set the timer duration with a process variab

3条回答
  •  长发绾君心
    2021-01-01 05:18

    If the timer is running you can change dueDate of the timer by executing a signal. If a assginee requested more time, set new value of hurry and execute the signal. The old timer will be canceled and the new timer will be created with new due date.

    runtimeService.setVariable(execution.getId(), "hurry", newDueDate);
    runtimeService.signalEventReceived(signalName, execution.getId());
    

    Process with signal

提交回复
热议问题