Package org.huihoo.willow.session

Examples of org.huihoo.willow.session.SessionManager


    }
   
  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()))
    List result=new ArrayList();
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();
      if(!liveCase.getPackageID().equals(packageID))
View Full Code Here

    }
  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();
      if(!liveCase.getPackageID().equals(packageID))
View Full Code Here

    }
  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());
      String packageID=localCase.getWorkflowProcess().getWorkflowPackage().getUUID();
View Full Code Here

    }
  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());
      String packageID=localCase.getWorkflowProcess().getWorkflowPackage().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();

     
      WorkflowCase localCase=caseDatabase.findWorkflowCase(session,workflowProcess,liveCase.getUUID());
View Full Code Here

   
  public List getLiveWorkList(String sessionID,SerialProcess liveProcess,SerialParticipant performer, int itemStatus)
    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();
     
View Full Code Here

    SerialParticipant performer,
    int itemStatus)
    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();
      WorkflowCase localCase=caseDatabase.findWorkflowCase(session,workflowProcess,liveCase.getUUID());
View Full Code Here

    this.namingServer=namingServer;
  }

  public String  authenticate(String username,String password) throws RemoteException
  {      
    SessionManager manager = namingServer.getEngine().getSessionManager();
   
    WorkflowParticipant  participant=null;
   
    RealmDatabase  realmDatabase=namingServer.getEngine().getRealmDatabase();   
   
    participant=realmDatabase.authenticate(username,password);
    if(participant==null)
    {
      throw new RemoteException(
                "login engine unsuccessfully.username="
                  + username
                  + ",password="
                  + password);
    }
   
    WillowSession session=manager.createSession();
    session.setParticipant(participant);
   
    return session.getId();
  }
View Full Code Here

    return session.getId();
  }
 
  public void      disconnect(String sessionID) throws RemoteException
  {
    SessionManager manager = namingServer.getEngine().getSessionManager();   
    WillowSession session=manager.findSession(sessionID);
   
    if(session!=null)
    {
      session.invalidate();
    }
View Full Code Here

TOP

Related Classes of org.huihoo.willow.session.SessionManager

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.