Package org.huihoo.workflow.client.serial.model

Examples of org.huihoo.workflow.client.serial.model.SerialCaseDatabase


    System.err.println("-----------------------------------------------");
    System.err.println("org.huihoo.workflow="+liveService.getName());
     
    SerialUserDatabase userDatabase=liveService.getUserDatabase()
    SerialParticipant zosatapo=userDatabase.findParticipant("zosatapo");
    SerialCaseDatabase caseDatabase=liveService.getCaseDatabase();
    String sessionID=liveClient.getSessionID();
   
    SerialPackage livePackage=liveService.findPackage(package_id);
    System.err.println("livePackage : "+livePackage);
   
    SerialProcess liveProcess=livePackage.getMainProcess();
   
    System.err.println("liveProcess : "+liveProcess+",PackageID : "+liveProcess.getPackageID());
    System.err.println("caseDatabase : "+caseDatabase);
    System.err.println("maxInactiveInterval : "+liveClient.getMaxInactiveInterval()+" [s] ");
    String caseId=caseDatabase.createLiveCase(sessionID,liveProcess,zosatapo,new Date(),"first case"," "," ");
   
    SerialCase liveCase=caseDatabase.findLiveCase(sessionID,liveProcess,caseId);   
    System.err.println("PackageID="+liveCase.getPackageID());
   
    SerialWork liveWork=(SerialWork)caseDatabase.getLiveWorkList(sessionID,liveProcess,liveCase,zosatapo,Constants.WORK_STATUS_ACCEPTED).get(0);
    caseDatabase.dispatch(sessionID,liveWork);
    liveClient.disconnect();
   
    System.err.println("-------org.huihoo.workflow execution completed--------------");
  }
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.client.serial.model.SerialCaseDatabase

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.