[jboss-user] [JBoss jBPM] - Re: Decision node always taking first option
petia
do-not-reply at jboss.com
Wed Sep 12 11:45:25 EDT 2007
Hi,
The following worked for me (in jBPM 3.1.4). 'scenario' is a variable to which I enter value earlier in the process.
Hope it will help you. (It took me while to figure out how to extract a variable value, even if it is a very basic thing.)
Cheers, Petia
| <decision name="xor">
| <transition name="urgent" to="task-b">
| <condition expression="#{contextInstance.variables['scenario']== 1}"/>
| </transition>
| <transition name="dont care" to="task-c">
| <condition expression="#{contextInstance.variables['scenario']== 2}"/>
| </transition>
| <transition name="forget about it" to="task-d">
| <condition expression="#{contextInstance.variables['scenario'] != 2 and contextInstance.variables['scenario'] != 1}"/>
| </transition>
| </decision>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083529#4083529
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083529
More information about the jboss-user
mailing list