I got a different order.

You have to have a BEFORE SIGNAL, before you can even leave the node, then you 
leave the node, then you enter the NEXT NODE,a nd then it's the after signal.

Below is the processdefinition.xml I used
<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition 
  |   xmlns="urn:jbpm.org:jpdl-3.1"
  |   name="simpleactions">
  |    <start-state name="start">
  |      <task>
  |         <controller>
  |           <variable name="color" />
  |           <variable name="size" />
  |         </controller>
  |       </task>
  |       <transition name="to_state" to="first">
  |          <action name="action" 
class="com.sample.action.MessageActionHandler">
  |             <message>Going to the first state!</message>
  |          </action>
  |       </transition>
  |       <transition name="to node" to="node1"></transition>
  |    </start-state>
  |    <state name="first">
  |       <transition name="to_end" to="end">
  |          <action name="action" 
class="com.sample.action.MessageActionHandler">
  |             <message>About to finish!</message>
  |          </action>
  |       </transition>
  |    </state>
  |    <end-state name="end"></end-state>
  |    <task-node name="node1">
  |       <task name="task1"></task>
  |       <event type="before-signal">
  |          <action name="action1" 
class="com.sample.action.MessageActionHandler">
  |             <message>BEFORE SIGNAL</message>
  |          </action>
  |       </event>
  |       <event type="after-signal">
  |          <action name="after signal action" 
class="com.sample.action.MessageActionHandler">
  |             <message>AFTER-SIGNAL</message>
  |          </action>
  |       </event>
  |       <event type="node-enter">
  |          <action name="node enter action" 
class="com.sample.action.MessageActionHandler">
  |             <message>NODE ENTER</message>
  |          </action>
  |       </event>
  |       <event type="node-leave">
  |          <action name="Node Leave Action" 
class="com.sample.action.MessageActionHandler">
  |             <message>Node LEAVE</message>
  |          </action>
  |       </event>
  |       <transition name="from node" to="end"></transition>
  |    </task-node>
  | </process-definition>

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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to