2 Replies Latest reply on Sep 11, 2006 2:50 PM by jmjava

    Node events not getting fired?

    jmjava

      I have altered the demo app to trigger an action on leave-node

      <start-state name="create new web sale order">
       <task swimlane="buyer">
       <controller>
       <variable name="item"/>
       <variable name="quantity"/>
       <variable name="address"/>
       </controller>
       </task>
       <event type="node-leave">
       <action name="action1">jbpmproto.EmailNotificationAction</action>
       </event>
       <transition name="Save and Forward to Salesman" to="evaluate web order" />
       </start-state>
      



      but the Action is never getting called when i leave via the transition.

      Is there something wrong with my syntax?


        • 1. Re: Node events not getting fired?
          arjakki

          Hi ,

          Just want to know what is action1 in the action tag. I think you need to have some Class that implements ActionHandler , which get's called when leaving the start-state node

          jbpmproto.EmailNotificationAction
          |

          e.g.

          jbpmproto.EmailNotificationAction


          In this case MyActionHandler gets executed when leaving a node.




          Thanks
          arjakki

          • 2. Re: Node events not getting fired?
            jmjava

            i do have a class i just was not pointing to it :)


             <start-state name="create new web sale order">
             <task swimlane="buyer">
             <controller>
             <variable name="item"/>
             <variable name="quantity"/>
             <variable name="address"/>
             </controller>
             </task>
             <event type="node-leave">
             <script>
             System.out.println("Event was fired to node-leave on create new web sale order");
             </script>
             <action class="jbpmproto.EmailNotificationAction" name="action1"></action>
             </event>
             <transition name="Save and Forward to Salesman" to="evaluate web order" />
             </start-state>