- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2016 06:13 AM
Hi,
For a TimerBoundaryEvent, when cancelActivity is "false" and "activiti:endDate" is specified, can the original process be ended? I still see the task is assigned to the respective user.
If there is a repeating job along with the end date, TimerBoundaryEvent is not creating other jobs when it reach the end date. Along with this, our requirement is to end the original process when the timer expires.
Thanks in advance.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2016 12:15 PM
Ok thanks for the details.
So if I understand correctly.
After the Boundary Event Timer fires the 20th time you want to cancel the attached task.
If this is what you need, then you could add a counter to the boundary event either as a script task or execution listener. After you hit the last timer, throw a signal to cancel the original task.
See simple example below:
Obviously you can streamline this by throwing the signal inside the timer event boundary listener and checking the count there, but the basic approach is the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2016 12:16 PM
Check the signal approach I just posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2016 02:24 PM
Is not mandatory a script task; you could use a service task which will give you a lot of power while is also very easy to develop the java code.
in the same time you could consider also the solution Greg posted "signal based solution" which I really like.
