[jboss-user] [JBoss jBPM] - Node which executes Script and continues

MSchmidke do-not-reply at jboss.com
Tue Nov 6 09:15:13 EST 2007


Hello,

how can I create a node which is not a wait state?

I want to create a node which executes a script and then immediately continues to the next node, but I am having problems.

There seems to be no node type which automatically follows his transition, is there?

I've tried node type "node", but even this needs a signal to continue. And this signal is a problem. I've tried following:

	
  | <node name="Node1">
  |   <script>
  |     <expression>
  |       index=index+1;
  |       token.signal();
  |     </expression>
  |     <variable name="index" access="read,write" />
  |   </script>
  |   <transition to="Node2" name="next" />
  | </node>
  | 

The node's only purpose is to simply update a process variable, but what happens?

The "signal()" call runs synchronously to the next wait state, executing events and decisions, times before the script variable is written back to the context, so my variable modification will not be seen by the upcoming events and decisions.

This is cleary not what I want ...

What can I do???


Marcus.

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

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



More information about the jboss-user mailing list