4 Replies Latest reply on Aug 19, 2010 11:38 AM by tunmang

    In jbpm 4.3, how to get the incoming node name in the next node?

    tunmang

      Hi :

       

      In task node's and custom node's handler as shown below, how does one know its incoming node name? Thanks a lot for your help.

       

      (1)

        <custom class="TestActivity" name="TestNode">
            <transition to="end" "/>     
         </custom>
      public class TestActivity implements ActivityBehaviour
      {
        public void execute(ActivityExecution execution)
        {
          // how to get in-coming node name by execution ?

        }

      }

       

      (2)

         <task name="TestNode">
          <assignment-handler class="TestTask"/>
            <transition to="end" "/>     
         </task>

       

      public abstract class TestTask implements AssignmentHandler

        public void assign(Assignable assignable, OpenExecution execution)

        {

          // how to get in-coming node name by execution ?

        }

      }