[jboss-user] [JBoss jBPM] - Re: n-of-m join with jPDL

leobaz2 do-not-reply at jboss.com
Fri Jan 12 15:49:04 EST 2007


Here is the script ....


  | <join name="join1">
  |       <event type="node-enter">
  | 	    <script>
  | 	        count = 0;
  | 	        if(executionContext.getContextInstance().hasVariable("count", token))
  | 	        {
  | 	        	count = executionContext.getContextInstance().getVariable("count", token);
  | 	        }
  | 	        count = count + 1;
  | 	        if(count == 2)
  | 	        {
  | 	        	executionContext.leaveNode();
  | 	        }
  | 	        else if(count > 2)
  | 	        {
  | 	        	token.end();
  | 	        }
  | 	        executionContext.getContextInstance().setVariable("count",count,token);
  | 	    </script>
  | 	  </event>
  |       <transition name="" to="Some task"></transition>
  |    </join>
  | 

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

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



More information about the jboss-user mailing list