Package org.huihoo.willow

Examples of org.huihoo.willow.Context


    return getWrappedObject().revert(session,workflowWork);
  }
  public boolean fetch(String sessionID, SerialWork workItem)
    throws WorkflowException, RemoteException
  {
    Context cotext=(Context)this.workflowService;
    SessionManager manager=cotext.getEngine().getSessionManager();
    WorkflowSession session=manager.findSession(sessionID);
   
    WorkflowProcess workflowProcess=workflowService.findWorkflowPackage(workItem.getPackageID()).getMainProcess();
    WorkflowCase workflowCase=workflowService.getCaseDatabase().findWorkflowCase(session,workflowProcess,workItem.getCaseID());
    WorkflowWork workflowWork=workflowService.getCaseDatabase().findWorkflowWork(session,workflowProcess,workflowCase,workItem.getUUID());   
View Full Code Here


    String primaryKey,
    String name,
    String description)
    throws WorkflowException, RemoteException
    {
      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();
      return caseDatabase.createWorkflowCase(session,workflowProcess,userDatabase.findParticipant(creator.getUUID()),creationTime,primaryKey,name,description);
View Full Code Here

    }

  public SerialCase findLiveCase(String sessionID,SerialProcess liveProcess,String caseId)
    throws WorkflowException, RemoteException
    {
      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 liveCase=caseDatabase.findWorkflowCase(session,workflowProcess,caseId);
      if(liveCase!=null)
View Full Code Here

    }
   
  public SerialCase findLiveCase(String sessionID,SerialProcess liveProcess,PrimaryKey primaryKey)
    throws WorkflowException, RemoteException
    {
      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 liveCase=caseDatabase.findWorkflowCase(session,workflowProcess,primaryKey);
      if(liveCase!=null)
View Full Code Here

      return null;
    }
   
  public List getLiveCaseList(String sessionID,SerialProcess liveProcess,SerialParticipant creator) throws WorkflowException, RemoteException
  {
    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 caseList=caseDatabase.getWorkflowCaseList(session,workflowProcess,userDatabase.findParticipant(creator.getUUID()))
View Full Code Here

  }

  public void deleteLiveCase(String sessionID,SerialProcess liveProcess,SerialCase liveCase)
    throws WorkflowException, RemoteException
    {
      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();
View Full Code Here

      caseDatabase.deleteWorkflowCase(session,workflowProcess,localCase);
    }
  public void cancelLiveCase(String sessionID,SerialProcess liveProcess,SerialCase liveCase)
    throws WorkflowException, RemoteException
    {
      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();
View Full Code Here

      caseDatabase.cancelWorkflowCase(session,workflowProcess,localCase);     
    }
  public void suspendLiveCase(String sessionID,SerialProcess liveProcess,SerialCase liveCase)
    throws WorkflowException, RemoteException
    {
      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());
View Full Code Here

      caseDatabase.suspendWorkflowCase(session,workflowProcess,localCase);   
    }
  public void resumeLiveCase(String sessionID,SerialProcess liveProcess,SerialCase liveCase)
    throws WorkflowException, RemoteException
    {
      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());
View Full Code Here

  //------------------------------------------------------------------------------------     

  public SerialWork findLiveWork(String sessionID,SerialProcess liveProcess,SerialCase liveCase, String workId)
    throws WorkflowException, RemoteException
    {
      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();

     
View Full Code Here

TOP

Related Classes of org.huihoo.willow.Context

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.