Package org.huihoo.workflow.xpdl

Examples of org.huihoo.workflow.xpdl.WorkflowActivity


   
  public boolean accept(WorkflowProcess workflowProcess,WorkflowParticipant operator, WorkflowWork workItem) throws WorkflowException
  {
    log.debug("[accept] workitem: " + workItem);
 
    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();
    UserTransaction userTransaction = caseDatabase.getUserTransaction();
    boolean resultDone = false;
View Full Code Here


  public boolean dispatch(WorkflowProcess workflowProcess,WorkflowParticipant operator, WorkflowWork workItem) throws WorkflowException
  {

    log.info("[dispatch] workitem: " + workItem );

    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
   
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();
    UserTransaction userTransaction = caseDatabase.getUserTransaction();
View Full Code Here

    return resultDone;
  }
  public boolean revert(WorkflowProcess workflowProcess,WorkflowParticipant operator, WorkflowWork workItem) throws WorkflowException
  {
    log.debug("[revert] workitem: " + workItem );
    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();

    UserTransaction userTransaction = caseDatabase.getUserTransaction();
View Full Code Here

  }
  public boolean fetch(WorkflowProcess workflowProcess,WorkflowParticipant operator, WorkflowWork workItem) throws WorkflowException
  {
    log.debug("[fetch] workitem: " + workItem );

    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();
    UserTransaction userTransaction = caseDatabase.getUserTransaction();
View Full Code Here

      pstmt.executeUpdate();
     
      createCaseEvent_impl(gCaseDatabaseImpl,workflowProcess,conn,false,pkgId,processId,caseId,creator,new Date(),WorkflowProcessEvent.CASE_CREATE,"");
     
      WorkflowActivity beginActivity = workflowProcess.getBeginActivity();
     
      List outTrans = beginActivity.getOutgoingTransitions();
      WorkflowTransition firstTransition = (WorkflowTransition) outTrans.get(0);

      WorkflowParticipant operator=creator;
     
      WorkflowActivity firstActivity = firstTransition.getToWorkflowActivity();
      String workId =
        createWork(gCaseDatabaseImpl,operator,conn, workflowProcess, caseId, firstActivity, creator, creationTime);
      createPath(gCaseDatabaseImpl,workflowProcess,operator,conn, caseId, null, workId, WorkflowActivityEvent.WORK_DISPATCH);

      createCaseContext(gCaseDatabaseImpl,workflowProcess,operator,conn, caseId);
View Full Code Here

      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();
     
      String transitionId=null;
      String owner_processId=null;
      WorkflowActivity fromActivity=(fromWork!=null)?fromWork.getWorkflowActivity():null;
      WorkflowActivity toActivity=(toWork!=null)?toWork.getWorkflowActivity():null;
     
      if(fromActivity!=null && toActivity!=null)
      {
        WorkflowProcess owner_process=fromActivity.getWorkflowProcess();
        owner_processId=owner_process.getUUID();
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.xpdl.WorkflowActivity

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.