JBoss Community

Re: How to get current node of process

created by Esteban Aliverti in jBPM - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community