1 Reply Latest reply on Mar 4, 2007 7:16 PM by ga bu

    Add an ActionHandler to a Transition.

    ga bu Newbie

      Hello,

      I'm using Jbpm 3.1.2

      In the Jbpm manual, it is explained in part 9.5 how to attach an ActionHandler to a Transition, in the processdefinition.xml file. The example is as follow :

      public class RemoveEmployeeUpdate implements ActionHandler {
      ...
      }

      <process-definition name="yearly evaluation">
      ...







      ...
      </process-definition>

      What I'm trying to do is actually to do the same, but programmatically. I can't find a method to do this, neither in Transition class or in ProcessDefinition class. Also, It's never an ActionHandler which is manipulated, but an Action (inherits of ActionHandler).

      Thanks for any help you could give to me.

        • 1. Re: Add an ActionHandler to a Transition.
          ga bu Newbie

          I'm sorry, some xml tags disapeared. Here they are :

          <process-definition name="yearly evaluation">
          ...
          <state name="fire employee">
           <transition to="collect badge">
           <action class="com.nomercy.hr.RemoveEmployeeUpdate" />
           </transition>
          </state>
          ...
          <state name ="collect badge">
          
          </process-definition>