cancel
Showing results for 
Search instead for 
Did you mean: 

Timer BoundaryEvents

ncoonghe
Champ in-the-making
Champ in-the-making
How do I model two escalation tasks as boundary timer event, based on the due date on the same task

1. Say timer to be fired 1day before the due date
2. Timer to be fired immediately when the task is overdue, i,e past the due date.

item 1 needs to be fired first if the task is not completed
item 2 needs to be fired if the task pending past the due date

Regards
Nirmal 
6 REPLIES 6

hari
Star Contributor
Star Contributor
Hi,

Try it this way, I think it should work. Have two local variables for your task with names like trigger1 and trigger2 and have two timer events attached. Have a create task listener which sets the dates for trigger1 and trigger2 as per your requirement like duedate-1 and duedate+1 respectively and set the timer event's timeDate of one timer to trigger1 and timeDate of second timer to trigger2.

hari
Star Contributor
Star Contributor
Please ignore my response above. Well, I tried it with multiple timers but it went only to one timer and the other timer was ignored.  Will try again when I find some time.

trademak
Star Contributor
Star Contributor
Hi Nrimal,

If the due date is a process variable, you could define two timer boundary events using the same process variable. One boundary event using process variable - 1 day and the other the same as the due date.

Best regards,

ncoonghe
Champ in-the-making
Champ in-the-making
Thx for your efforts.

you mean to say that I have the 2 boundary timer events with no outgoing sequence on the timer events ? all that the event does is send out say an escalation mail , but use the cancelActivity=false, then the second timer would also be triggered when its time comes and does whatever it needs to do. ?
If I put an outgoing sequence then I will have to use a parallel gateway on both the timer events, but if the task is completed before the second timer event, then the task will wait until the second timer is trigger. This would not be what I want. I need the task to go to the next task even if one or  both timers does not get triggered because the task would be completed prior to the triggering of the events

I hope I am making sense. Please let me know your thoughts on how I can model this behavior
Regards
Nirmal

ncoonghe
Champ in-the-making
Champ in-the-making
Any help is appreciated

jbarrez
Star Contributor
Star Contributor
I'm not sure if I'm following: did you try adding two different boundary timer events (with cancelActiviti="false")? That should work.