cancel
Showing results for 
Search instead for 
Did you mean: 

Process not terminating at the End Event

zlatan316
Champ on-the-rise
Champ on-the-rise
Hi,

I am launching a process via Java using startProcessInstanceByKey("processName"). This diagram uses a combination of gateways to apply logic to call activity nodes that all carry out a set of tasks(see below)

http://s1.postimg.org/74gw7bzf3/TWPMProcess.png

However, no matter what task there is on the bottom branch of the Parallel Gateway(Send Reporting, or even a simple Service Task that prints to screen), it causes the overall process to not get marked as complete in the database, even if it reaches the End Event after the synchronization Parallel Gareway. Checking the database reveals no End Time on this process record in the db.

Is there an issue in my design which might be causing this, as the top branch of the Parallel gateway works fine by itself.
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Could you provide jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin

zlatan316
Champ on-the-rise
Champ on-the-rise
Hi,

I was actually able to resolve this by synchronizing my branches into the final Exclusive gateway that is before the final parallel gateway. This allows both paths to be traversed from the first Parallel gateway and synced at the end, before the diagram would then continue. I assume this is something to do with how gateways are syncing in sequence even though they aren't of the same type of gateway.