use of org.jbpm.process.instance.impl.DefaultProcessInstanceManager in project jbpm by kiegroup.
the class InMemorySessionFactory method newKieSession.
@Override
public KieSession newKieSession() {
Environment env = environment.getEnvironment();
env.set(EnvironmentName.DEPLOYMENT_ID, owner);
KieSession ksession = kbase.newKieSession(environment.getConfiguration(), env);
this.sessions.put(ksession.getIdentifier(), ksession);
ProcessInstanceManager piManager = ((ProcessRuntimeImpl) ((StatefulKnowledgeSessionImpl) ksession).getProcessRuntime()).getProcessInstanceManager();
if (piManager instanceof DefaultProcessInstanceManager) {
((DefaultProcessInstanceManager) piManager).setProcessCounter(processCounter);
}
return ksession;
}
Aggregations