I started using JBPM 6.3.0 Final as per the documentation. I'm able to start a process instance and able to complete the tasks aswell.
But I'm unable to access the process details from process instance when persistence is enabled(persistence set to true). Below is my code.
ProcessInstance pi= ksession.startProcess("AssetCommissionRoutine.commission", params);
System.out.println(pi.getProcessName());
I even tried to cast it to WorkflowProcessInstance and RuleFlowProcessInstance
I get the following error when I try to access any of the process related information.
Exception in thread "main" java.lang.IllegalStateException: Process instance 1[AssetCommissionRoutine.commission] is disconnected.
Any help is much appreciated.