[jboss-user] [JBoss jBPM] - Re: Why my condtion doesn't get evaluated?

sparklehorse do-not-reply at jboss.com
Tue Jun 26 04:12:32 EDT 2007


I've tried without luck also a simplified scenario with all possible conditon syntax


  |   <decision name="CheckState">        
  |                 <transition name="tr2" to="node2">
  |                         <condition>status=='DO NOT GO HERE'</condition>                
  |                 </transition>
  |                 <transition name="tr3" to="node3">
  |                         <condition>status=='UNDEF'</condition>            
  |                 </transition>
  |                 <transition name="tr0" to="node0">
  |                         <condition>status  eq 'UNDEF'</condition>                   
  |                 </transition>
  |                 <transition name="tr1" to="node1">
  |                         <condition>#{status == 'UNDEF'}</condition>                
  |                 </transition>                     
  |                 <transition name="tr4" to="node4">
  |                         <condition>#{contextInstance.variables['status'] == 'UNDEF'}</condition>                
  |                 </transition>                     
  |                 <transition name="tr5" to="node5">
  |                         <condition>#{contextInstance.variable.status == 'UNDEF'}</condition>                
  |                 </transition>                     
  |                 <transition name="tr6" to="node6">
  |                         <condition>#{contextInstance.variable.status eq 'UNDEF'}</condition>                
  |                 </transition>  
  |                  <transition name="tr7" to="node7">
  |                         <condition>status -ùà-è+òl0'''00ì' 'UNDEF'</condition>                
  |                 </transition>                   
  |                 
  |         </decision>
  | 

having set a status var to UNDEF

The jbpm log says


2007-06-26 09:59:08,649 DEBUG [] update variable 'status' in 'TokenVariableMap159640d' to value 'UNDEF'
2007-06-26 09:59:08,667 DEBUG [] event 'before-signal' on 'State(RequestedState)' for 'Token(/)'
2007-06-26 09:59:08,710 DEBUG [] event 'node-leave' on 'State(RequestedState)' for 'Token(/)'
2007-06-26 09:59:08,710 DEBUG [] event 'transition' on 'Transition()' for 'Token(/)'
2007-06-26 09:59:08,732 DEBUG [] event 'node-enter' on 'Decision(CheckState)' for 'Token(/)'
2007-06-26 09:59:08,813 DEBUG [] decision didn't select transition, taking default Transition(tr2)
2007-06-26 09:59:08,813 DEBUG [] decision CheckState is taking 'Transition(tr2)'

So it seems that my variable status is set to undef
But i always get transition 2

Is there a way to debug the condition code that decide to get the default
transition?

thanks in advance

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

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




More information about the jboss-user mailing list