End task from another task

Hello to everyone,

After completing Step 1, two tasks are opened in parallel (for two different professionals):

1) Step 2 is an optional task
2) Step 3 is a mandatory task

When Step 3 is done I would like to check if Step 2 is pending, and if it is, finish it. Is possible ? How ?

Many many thanks !!!!

Carlos Castillo

 

 

This should do the trick:

Put the two parallel tasks in a subprocess (in Bonita you just call another process by a call activity). After step 2 is completed, a normal end event is reached, i. e. the upper path is finised, but step 3 is still pending. After step 3 is completed, a terminate end event is reached. This type of event terminates the entire called process - regardless whether step 2 is still been pending or not.