Package org.jbpm.persistence

Examples of org.jbpm.persistence.ProcessPersistenceContextManager


    public ProcessInstance getProcessInstance(long id, boolean readOnly) {
        InternalRuntimeManager manager = (InternalRuntimeManager) kruntime.getEnvironment().get("RuntimeManager");
        if (manager != null) {
            manager.validate((KieSession) kruntime, ProcessInstanceIdContext.get(id));
        }
      ProcessPersistenceContextManager ppcm
      = (ProcessPersistenceContextManager) this.kruntime.getEnvironment().get( EnvironmentName.PERSISTENCE_CONTEXT_MANAGER );
        ppcm.beginCommandScopedEntityManager();
 
      ProcessPersistenceContext context = ppcm.getProcessPersistenceContext();
     
        org.jbpm.process.instance.ProcessInstance processInstance = null;
        processInstance = (org.jbpm.process.instance.ProcessInstance) this.processInstances.get(id);
        if (processInstance != null) {
          if (processInstance.getKnowledgeRuntime() == null) {
View Full Code Here

TOP

Related Classes of org.jbpm.persistence.ProcessPersistenceContextManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.