Package org.drools.gorm.session

Examples of org.drools.gorm.session.ProcessInstanceInfo


    public GormProcessInstanceManager(InternalKnowledgeRuntime kruntime) {
      this.kruntime = kruntime;
    }

    public void addProcessInstance(ProcessInstance processInstance) {
      ProcessInstanceInfo pii = GrailsIntegration.getGormDomainService()
          .getNewProcessInstanceInfo((org.jbpm.process.instance.ProcessInstance) processInstance, kruntime.getEnvironment());
      GrailsIntegration.getGormDomainService().saveDomain(pii);
      ((org.jbpm.process.instance.ProcessInstance) processInstance).setId( pii.getId() );
        pii.updateLastReadDate();
        internalAddProcessInstance(processInstance);
    }
View Full Code Here


          (org.jbpm.process.instance.ProcessInstance) processInstances.get(id);
      if (processInstance != null) {
        return processInstance;
      }
     
        ProcessInstanceInfo processInstanceInfo = GrailsIntegration
            .getGormDomainService().getProcessInstanceInfo(id, this.kruntime.getEnvironment());
        if ( processInstanceInfo == null ) {
            return null;
        }
        processInstanceInfo.updateLastReadDate();
        processInstance =
          processInstanceInfo.getProcessInstance(kruntime, this.kruntime.getEnvironment());
        Process process = kruntime.getKnowledgeBase().getProcess( processInstance.getProcessId() );
        if ( process == null ) {
            throw new IllegalArgumentException( "Could not find process " + processInstance.getProcessId() );
        }
        processInstance.setProcess( process );
View Full Code Here

        return Collections.unmodifiableCollection(processInstances.values());
    }

    @Override
    public void removeProcessInstance(ProcessInstance processInstance) {
      ProcessInstanceInfo processInstanceInfo = GrailsIntegration
         .getGormDomainService().getProcessInstanceInfo(processInstance.getId(), this.kruntime.getEnvironment());
       if ( processInstanceInfo != null ) {
         GrailsIntegration.getGormDomainService().deleteDomain(processInstanceInfo);
       }
       internalRemoveProcessInstance(processInstance);
View Full Code Here

TOP

Related Classes of org.drools.gorm.session.ProcessInstanceInfo

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.