I am using PerProcessInstance strategy to build kession. When I try to retrieve kession using
runtimeManager = RuntimeManagerFactory.Factory.get().newPerProcessInstanceRuntimeManager(runtimeEnv);
KieSession ksession = runtimeManager .getRuntimeEngine(ProcessInstanceIdContext.get(processInstanceId)).getKieSession();
the execution halts indefinitely. When I did some debugging I got to know that when flow goes in getRuntimeEngine() method, finally reaches to LockSupport.parkUntil() method then calls UNSAFE.park(true, deadline).
And then no further execution is done. What could go wrong? Please help.