[rules-users] RuleFlow WorkItem check for abort

Quevedo quevedo79 at terra.es
Mon Nov 28 09:10:32 EST 2011


Hi Cherokee,

To answer your first question you can check the state of a workitem in its
onExit action by:

import org.jbpm.workflow.instance.node.WorkItemNodeInstance
import org.drools.runtime.process.WorkItem


WorkItem workItem =
((WorkItemNodeInstance)kcontext.getNodeInstance()).getWorkItem();
System.out.println("State of the workitem " + workItem.getName() + " on exit
is " + workItem.getState());

I hope it could be useful.

Quevedo

--
View this message in context: http://drools.46999.n3.nabble.com/RuleFlow-WorkItem-check-for-abort-tp2778938p3542291.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list