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

cancel
Showing results for 
Search instead for 
Did you mean: 
karin
Active Member

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

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
bassam_al-saror
Alfresco Employee

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

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>