How do I fire an action every time a JBPM Node enters?

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

JBoss recipe of the day

Simply put the event at the same level as process definition !

<process-definition
  xmlns="urn:jbpm.org:jpdl-3.2"
  name="Gap">
 
   <event type="node-enter">
           <action   class="com.sample.action.TransitionHandler" />
   </event>

  ......
</process-definition>


This way the action class TransitionHandler will be recalled each time a Node enters in your Process.



Related articles available on mastertheboss.com

JBPM tutorial

JBoss jBPM 3 is a flexible, extensible framework for process lang

JBoss Jbpm superstates

What is a superstate ? a Superstate is a group of nodes. Supersta

Jbpm Mail delivery

Almost every workflow needs a notification of the process activit

How do you embed Java code in your JPDL ?

  You can use a BeanShell expression to add a Java script in you

JBPM best practices

There's no perfect rule to model your workflow, it depends on the

How to delete/persist your JBPM process after restart ?

JBoss recipe of the day

Follow us on Twitter