cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically Setting Boundry Timer Date

reinharh
Champ in-the-making
Champ in-the-making
I have a boundary timer event for which I need set the timeDate based on some input conditions of the individual task instance. Looking through the API's I'm not seeing how to do this. The users guide only covers setting date, duration, or interval statically through model.

Thanks.
4 REPLIES 4

code
Champ in-the-making
Champ in-the-making
Hi,

I'm also searching a solution for this subject.

Is it possible to change the DUEDATE_ column value in the ACT_RU_JOB table? If I am not wrong, Activiti set this value when it reaches a wait state.

frederikherema1
Star Contributor
Star Contributor
You can use an expression in your timer-definition, using process-instance variables for example. Or for more complex calculations, you can always call a method on a bean (eg. timeService.getDueDate(execution)) using spring or the special "beans" list on the process-configuration.

A third option is to calculate the date in an execution/task-listener or JavaDelegate on service-task and set as process var to be used when needed…

reinharh
Champ in-the-making
Champ in-the-making
Thanks.  The process instance variable worked perfectly.

frederikherema1
Star Contributor
Star Contributor
You're welcome Smiley Happy