Activiti / Camunda change boundary timer with variable

前端 未结 3 1202
走了就别回头了
走了就别回头了 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

    After some time of thinking I came up with a workaround like that:

    enter image description here

    I start the process with two variables. "hurry" is evaluated for the boundary timer. And "extendDeadline" is initialized with false. If the timer triggers and the process advances to the exclusive gateway, the value of "extendDeadline" is evaluated.

    If a user has changed the value of "extendDeadline" to true during the the timer was running the process returns to the user task again where the boundary timer is set to the value of "hurry".

    If the "extendDeadline" is still set to false, the process can proceed.

提交回复
热议问题