use of org.jbpm.persistence.api.ProcessPersistenceContext in project jbpm by kiegroup.
the class JPAProcessInstanceManager method getProcessInstance.
@Override
public ProcessInstance getProcessInstance(CorrelationKey correlationKey) {
ProcessPersistenceContext context = ((ProcessPersistenceContextManager) this.kruntime.getEnvironment().get(EnvironmentName.PERSISTENCE_CONTEXT_MANAGER)).getProcessPersistenceContext();
Long processInstanceId = context.getProcessInstanceByCorrelationKey(correlationKey);
if (processInstanceId == null) {
return null;
}
return getProcessInstance(processInstanceId);
}
Aggregations