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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to