[jboss-user] [JBoss jBPM] - Re: Current state of the process instance using APIs

shansari do-not-reply at jboss.com
Thu Sep 25 04:22:18 EDT 2008

Hi Ronald,

Thanks for your response.
I read through the examples.

Shows create the process instance first, on same process manipulates the nodes traversal. 

I'm trying to get the process instance of the process already running.

I'm using the below code
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
jbpmContext = jbpmConfiguration.createJbpmContext();
GraphSession graphSession = jbpmContext.getGraphSession();
ProcessDefinition pd = graphSession.findLatestProcessDefinition(processName);
ProcessInstance processInstance = jbpmContext.getProcessInstance(pd.getId());
System.out.println(" processInstance :"+processInstance);

I'm getting process instance is null.

Kindly help

With Regs
:Ansari S.H

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178709#4178709

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178709

More information about the jboss-user mailing list