Package org.huihoo.workflow.store

Examples of org.huihoo.workflow.store.CaseDatabase


    {
      Context cotext=(Context)this.workflowService;
      SessionManager manager=cotext.getEngine().getSessionManager();
      WorkflowSession session=manager.findSession(sessionID);
      WorkflowProcess workflowProcess=workflowService.findWorkflowPackage(liveProcess.getPackageID()).findWorkflowProcess(liveProcess.getUUID());
      CaseDatabase caseDatabase=workflowService.getCaseDatabase();

     
      WorkflowCase localCase=caseDatabase.findWorkflowCase(session,workflowProcess,liveCase.getUUID());
      String packageID=localCase.getWorkflowProcess().getWorkflowPackage().getUUID();
      if(!liveCase.getPackageID().equals(packageID))
      {
        throw new WorkflowException("crossWorkflow not supported");
      }
     
      WorkflowWork workflowWork=caseDatabase.findWorkflowWork(session,workflowProcess,localCase,workId);
      if(workflowWork!=null)
      {
        return new SerialWork(workflowWork);
      }
      return null;
View Full Code Here


      Context cotext=(Context)this.workflowService;
      SessionManager manager=cotext.getEngine().getSessionManager();
      WorkflowSession session=manager.findSession(sessionID);
     
      WorkflowProcess workflowProcess=workflowService.findWorkflowPackage(liveProcess.getPackageID()).findWorkflowProcess(liveProcess.getUUID());
      CaseDatabase caseDatabase=workflowService.getCaseDatabase();
      UserDatabase userDatabase=workflowService.getUserDatabase();
     
      List workList=caseDatabase.getWorkflowWorkList(session,workflowProcess,userDatabase.findParticipant(performer.getUUID()),itemStatus);
   
      List result=new ArrayList();
   
      for(int i=0;i<workList.size();++i)
      {
View Full Code Here

      Context cotext=(Context)this.workflowService;
      SessionManager manager=cotext.getEngine().getSessionManager();
      WorkflowSession session=manager.findSession(sessionID);
     
      WorkflowProcess workflowProcess=workflowService.findWorkflowPackage(liveProcess.getPackageID()).findWorkflowProcess(liveProcess.getUUID());
      CaseDatabase caseDatabase=workflowService.getCaseDatabase();
      UserDatabase userDatabase=workflowService.getUserDatabase();
      WorkflowCase localCase=caseDatabase.findWorkflowCase(session,workflowProcess,liveCase.getUUID());
      String packageID=localCase.getWorkflowProcess().getWorkflowPackage().getUUID();
      if(!liveCase.getPackageID().equals(packageID))
      {
        throw new WorkflowException("crossWorkflow not supported");
      }
           
      List workList=caseDatabase.getWorkflowWorkList(session,workflowProcess,localCase,userDatabase.findParticipant(performer.getUUID()),itemStatus)
      List result=new ArrayList();
   
      for(int i=0;i<workList.size();++i)
      {
        result.add(new SerialWork((WorkflowWork)workList.get(i)));
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.store.CaseDatabase

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.