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

sparklehorse do-not-reply at jboss.com
Sat Jun 23 03:30:20 EDT 2007


I have this snippet process definition


  | <decision name="CheckState">             
  |    <transition name="tr2" to="node2">  
  |     <condition>#{JBpmService.status=='DELETED'}</condition>            
  |   </transition>
  |   <transition name="tr3" to="node3">
  |      <condition>#{JBpmService.status=='READY'}</condition>            
  |    </transition>
  |    <transition name="tr0" to="node0">
  |       <condition>#{JBpmService.status=='UNDEF'}</condition>            
  |     </transition>      
  |     <transition name="tr1" to="node1">
  |       <condition>#{JBpmService.status=='NOT_LOGGED'}</condition>            
  |      </transition>        
  | </decision>
  | 

I've set in contextinstance the object JBpmService in an action prior to the decision ( which has a status property ) with this code


  | ContextInstance contextInstance =  processInstance.getContextInstance();
  | contextInstance.setVariable("JBpmService",jbpms);
  | processInstance.signal();
  | 

What 's wrong?
I get always the first (default) transition.
Is there a simple way to debug this?


I've tried to change the expression in several ways with always the same result: default transition taken. for example


  | <condition>#{contextInstance.variables['JBpmService'].status=='READY'}</condition>         
  | or 
  | <condition>#{contextInstance.variables.JBpmService.status=='READY'}</condition>           
  | 
i've tried also to set a simple String var status  to simplify : always default transition

  | <condition>#{status=='READY'}</condition>          
  | or
  | <condition>#{contextInstance.variables.status=='READY'}</condition>           
  | 

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

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



More information about the jboss-user mailing list