1 of 1 people found this helpful
Which 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.
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!
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.
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?
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).