-
1. Re: Prevent duplication in XOR gateway
eaa Jul 30, 2012 11:24 AM (in response to bodiam)1 of 1 people found this helpfulWhich process editor are you using?
One solution for this particular situation (having only 2 outgoing sequence flows) you could use a default sequence flow. So, in one of the sequence flows you write your logic and you configure the other one as a default sequence flow.
Unfortunately this is not yet supported in the Web Process Editor: https://issues.jboss.org/browse/JBPM-3704
AFAIK, jBPM5 eclipse plugin should support this feature.
-
2. Re: Prevent duplication in XOR gateway
bodiam Jul 31, 2012 3:52 AM (in response to eaa)Hi Esteban,
Thanks for the help! I'm using the Eclipse jBPM5 editor, but I cannot find a way to set the default sequence flow. Google doesn't provide much help here.
Thanks for the help so far!
-
3. Re: Prevent duplication in XOR gateway
eaa Jul 31, 2012 4:45 AM (in response to bodiam)I was re-thinking this and maybe what you can do is to use a low priority in your 'default' flow and as a confition just add 'return true == true;'. The flow containing the real logic must be always evaluated first, so it must have a higher priority.
I've checked the Eclips plugin and what you have there is a 'Always true' checkbox that creates the condition 'eval(true)'. You still have to use a low priority if you want to use this as a 'default' flow.
Hope it helps.
-
4. Re: Prevent duplication in XOR gateway
bodiam Jul 31, 2012 6:44 AM (in response to eaa)I could also do that, but does this mean there is not really a way to use a 'real' default flow? And what is a higher priority? Is 1 the highest? Or is 1 low, and is (say) 1000 high?
-
5. Re: Prevent duplication in XOR gateway
eaa Jul 31, 2012 9:28 AM (in response to bodiam)Higher number means higher priority.
I'm not sure about the new BPMN2 eclipse editor, but this feature seems to be missing in jBPM5 eclipse plugin (I wouldn't expect to be implemented any time soon) and jBPM Web Designer (there is a reported issue though: https://issues.jboss.org/browse/JBPM-3704).
-
6. Re: Prevent duplication in XOR gateway
tkobayashi Mar 4, 2013 12:23 AM (in response to eaa)Hi, a small correction:
Lower number means higher priority. So setting a very large number for default flow would be fine.
http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-basics.html#d0e1976