-
1. Re: Usage of Timer as Subprocess Boundary Event
swiderski.maciej Jun 4, 2014 1:52 AM (in response to marcj)1 of 1 people found this helpfulthe problem is that you put thread sleep in the script activity which locks current execution and thus preventing the timer to fire - only single operation can happen on given process instance. Make one of these tasks async and then timer will be executed. That is actually recommendation - use async processing in case processing can take longer time or you want to have possibility to interfere with the running instance.
HTH
-
2. Re: Usage of Timer as Subprocess Boundary Event
marcj Jun 4, 2014 2:18 AM (in response to swiderski.maciej)Hi Maciej,
thx for your reply. What exactly do you mean by "making one of these tasks async" - is there a property to do so?
I tried to circumvent the thread.sleep(); by using that:
Date start = new Date(); Date end = new Date(); while(end.getTime() - start.getTime() < 10 * 1000){ end = new Date(); }
No impact on the timer though.
Curious for your reply.
-
3. Re: Usage of Timer as Subprocess Boundary Event
swiderski.maciej Jun 4, 2014 3:01 AM (in response to marcj) -
4. Re: Usage of Timer as Subprocess Boundary Event
marcj Jun 4, 2014 8:56 AM (in response to swiderski.maciej)Thx for the article. To summarize the information provided:
- Timer boundary events can only be attached to asynchronous activities respectively subprocess cointaining asynchronous activites.
- A set of synchronous acitivities therefore can´t be addressed by a timer event.
Is that correct?
-
5. Re: Usage of Timer as Subprocess Boundary Event
swiderski.maciej Jun 4, 2014 9:07 AM (in response to marcj)1 of 1 people found this helpfulyes, that's pretty much correct. Boundary events makes sense only when there is state in given node - like human tasks so there is a chance that such not will receive the signal. As when it's being processed it won't be able to receive any signals and once done with processing it will deactivate boundary event before the signal arrives.
HTH
-
6. Re: Usage of Timer as Subprocess Boundary Event
marcj Jun 4, 2014 9:18 AM (in response to swiderski.maciej) -
7. Re: Usage of Timer as Subprocess Boundary Event
swiderski.maciej Jun 4, 2014 9:20 AM (in response to marcj)that's correct. As soon as the processing arrives into user task timer will be able to trigger.
HTH