This content has been marked as final.
Show 2 replies
-
1. Re: How do you get the active node of a process
eaa May 5, 2011 11:53 AM (in response to jdh)You need to use one of the "magic" castings of jBPM...
For example:
WorkflowProcessInstance process = (WorkflowProcessInstance) ksession.startProcess("some.id");
Assert.assertEquals("Ask for Emergency Information", process.getNodeInstances().iterator().next().getNodeName());
Remember that the active nodes are those that left the process instance in a waiting state. So, for example, you will never see a Script Task here.
-
2. How do you get the active node of a process
zorin May 5, 2011 10:26 PM (in response to jdh)You can also monitor entries into nodes by using method public void beforeNodeTriggered( ProcessNodeTriggeredEvent event )
of your implementation of org.drools.event.process.ProcessEventListener interface.