Hi dhartford (How do you pronounce this name :()!
I would suggest you give more sensible mapped name to the variable you are 
using in the condition expression and use this name instead.
Also try using contextInstance object for accessing the variable instead of 
executionContext.

<task-node name="getinfo">
  |             <task name="getinfo" swimlane="swimlane1">
  |                    <controller>
  |                      <variable name="decinfo" access="read,write,required" 
mapped-name="decisionVariable"/>
  |                    </controller>
  |                    </task>
  |          <transition name="fdfsfds" to="myfirstdecnode"></transition>
  |       </task-node>
  |       <decision name="myfirstdecnode">
  |          <transition name="tr1" to="itask">
  |                    <condition>decisionVariable == 'I'</condition>
  |          </transition>
  |          <transition name="tr2" to="etask">
  |                    <condition>decisionVariable == 'E'</condition>
  |          </transition>
  |          <transition name="tr3" to="ctask">
  |                    <condition>
  |    
contextInstance.getVariable("decisionVariable").toString().equalsIgnoreCase("C")
  |                    </condition>
  |          </transition>
  |       </decision>

By the way do you know that you can use variable to define which is the next 
transition you want to take:

        <transition name="to tn1" to="tn1">
  |             <condition expression="#{contextInstance.variables['Bla'] eq 
'alabalAportokala'}"/>
  |         </transition>

I suppose you have already set the variable like this for example:

        <event type="node-leave">
  |             <script>
  |                 <variable name="Initiator" mapped-name="Bla"/>
  |                 <expression>
  |                     executionContext.setVariable("Bla", "alabalAportokala");
  |                 </expression>
  |             </script>
  |         </event>

I hope this could be usefull.

Regards, Saviola


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933023#3933023

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933023


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to