JBoss Community

get name of the actual state

created by kaissun bs in jBPM - View the full discussion

Do you know how we can get the state of our process with the code java by jBPM API ?

 

if we have :

ProcessInstance instance = executionService.startProcessInstanceByKey("helloworld");

 

and when i pick : 

 

System.out.println(instance.getState());

 

it gives me active-root.

 

thanks !
NB : the jBPM version is 4.4 !

Reply to this message by going to Community

Start a new discussion in jBPM at Community