cancel
Showing results for 
Search instead for 
Did you mean: 

TimerBoundaryEvent - AutoComplete task when timer expires

sredrouthu
Champ in-the-making
Champ in-the-making

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.

1 ACCEPTED ANSWER

gdharley
Elite Collaborator
Elite Collaborator

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.

View answer in original post

11 REPLIES 11

gdharley
Elite Collaborator
Elite Collaborator

Check the signal approach I just posted.

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.

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.