ex-gateway incorrect behaviour

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2013 02:20 AM
Unfortunately I can't upload a diagram picture here so I'll have to explain my problem.
A start event is connected to a timer and a user-task. Both the timer and the user-task are connected to an exclusive gateway. The exclusive gateway is connected to an end event too.
My understanding is that the exclusive gateway should only allow either the flow from the timer or the user-task, not both which is what I am experiencing in Activiti.
Can someone please clarify what is really supposed to happen in such a model.
Thanks,
Johnny
A start event is connected to a timer and a user-task. Both the timer and the user-task are connected to an exclusive gateway. The exclusive gateway is connected to an end event too.
My understanding is that the exclusive gateway should only allow either the flow from the timer or the user-task, not both which is what I am experiencing in Activiti.
Can someone please clarify what is really supposed to happen in such a model.
Thanks,
Johnny
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2013 04:14 AM
If you have two outgoing sequential flows to the timer and the user task, you've effectively creating TWO parallel executions in the process instance. The exclusive gateway does not merge any parallel paths, that's what other gateways are for.
When the execution arrives in the exclusive gateway, it will just make that execution pass through the right outgoing flow.
When the execution arrives in the exclusive gateway, it will just make that execution pass through the right outgoing flow.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2013 08:53 PM
Hi jbarrez,
I'm the same guy as the OP.
Thank you, that answers my question. Anyway I don't think I explained the diagram properly so for the record here is the diagram picture:
http://i27.photobucket.com/albums/c153/wasssup1990/model.png
My boss thought that only one 'done' user task would be created. In fact there are two that are created. We wanted the timer task to stop if the 'user task' completed before the timer expired. Clearly this doesn't happen - it just keeps running and creates another 'done' task after it expires.
Thanks again,
Johnny
I'm the same guy as the OP.
Thank you, that answers my question. Anyway I don't think I explained the diagram properly so for the record here is the diagram picture:
http://i27.photobucket.com/albums/c153/wasssup1990/model.png
My boss thought that only one 'done' user task would be created. In fact there are two that are created. We wanted the timer task to stop if the 'user task' completed before the timer expired. Clearly this doesn't happen - it just keeps running and creates another 'done' task after it expires.
Thanks again,
Johnny
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2013 08:06 AM
What you actually want is a usertask + a timer on the boundary to get the behaviour you want.
Note that you can group stuff together in a subprocess and put a timer on that subprocess in a similar fashion.
PS: love your avatar. For some reason, I never though anybody would ever choose a chicken as avatar on a BPM forum 😉
Note that you can group stuff together in a subprocess and put a timer on that subprocess in a similar fashion.
PS: love your avatar. For some reason, I never though anybody would ever choose a chicken as avatar on a BPM forum 😉

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2013 07:55 PM
Yep, we were figured out that we needed a timer boundary event on the user-task. The ability to put a timer boundary event on a sub-process is something that I haven't tried until now. Thanks for mentioning it.
P.S. I thought a chicken avatar would be funny. *lol*
P.S. I thought a chicken avatar would be funny. *lol*
