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
In this case MyActionHandler gets executed when leaving a node.
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>