cancel
Showing results for 
Search instead for 
Did you mean: 

How to set dynamically value of <startTime> and <endTime> to Time events?

karin
Champ on-the-rise
Champ on-the-rise

I want to set values of 'startTime' and 'endTime' to Time events.

< example >

There is a daily task over a period of time.

'startTime' and 'endTime' is a start and end date of a period.  'startTime' and 'endTime' varies according to the situation.

'startTime' and 'endTime' got from usertask in other process.

Then, how to send 'startTime' and 'endTime' to several timer event ?

Can I set those in a process definition without api ?

1 REPLY 1

bassam_al-saror
Star Collaborator
Star Collaborator

Timer definitions accept expressions see https://www.activiti.org/userguide/#timerEventDefinitions 

For example

For start event

<timerEventDefinition> <timeDate>${startDate}</timeDate> </timerEventDefinition>

For the end event

<timerEventDefinition> <timeCycle>R3/PT10H/${EndDate}</timeCycle> </timerEventDefinition>