JBoss Community

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

created by Tun Mang in jBPM - View the full discussion

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 ?

  }

}

 

 

Reply to this message by going to Community

Start a new discussion in jBPM at Community