This content has been marked as final.
Show 2 replies
-
1. Re: How to get current node of process
eaa Aug 23, 2011 9:38 AM (in response to process15)You have to use a little bit of "magical casting": ProcessInstance process = ksession.startProcess("some.process"); //To get the name of the first node where the process is waiting: ((org.jbpm.workflow.instance.WorkflowProcessInstance)process).getNodeInstances().iterator().next().getNodeName()WorkflowProcessInstance
-
2. Re: How to get current node of process
d.y. Sep 12, 2011 7:33 AM (in response to eaa)Since this Thread is being quoted quite often i suggest you remove the "WorkflowProcessInstance" at the end of the Statement (((org.jbpm.workflow.instance.WorkflowProcessInstance)process).getNodeInstances().iterator().next().getNodeName()WorkflowProcessInstance) because it can be a bit confusing imho.