Examples of WorkflowWork


Examples of org.huihoo.workflow.runtime.WorkflowWork

    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());   
    return getWrappedObject().dispatch(session,workflowWork);
  }
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

    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());   
    return getWrappedObject().revert(session,workflowWork);
  }
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

    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());   
    return getWrappedObject().fetch(session,workflowWork);
  }
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

      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

Examples of org.huihoo.workflow.runtime.WorkflowWork

          toActivity,
          null,
          workflowWork.getDispatchTime());
    }

    WorkflowWork parentDispWork =
      caseDatabase.findWorkflowWork(workflowProcess, operator, userTransaction, workflowCase, parentDispWorkId);
    caseDatabase.createWorkflowPath(
      workflowProcess,
      operator,
      userTransaction,
      workflowCase,
      workflowWork,
      parentDispWork,
      pathDispBatch,
      WorkflowActivityEvent.WORK_DISPATCH);

    //only accept ,not dispatch
    DispatchController.accept_core(
      workflowService,
      workflowProcess,
      operator,
      caseDatabase,
      userTransaction,
      parentDispWork);

    //2) create org.huihoo.workflow work for subflow process first task node
    SubFlowImplementation impl = (SubFlowImplementation) toActivity.getImplementation();
    String suPprocessId = impl.getProcessID();
    WorkflowProcess subProcess = workflowPackage.findWorkflowProcess(suPprocessId);
    WorkflowTransition firstTransition =
      (WorkflowTransition) subProcess.getBeginActivity().getOutgoingTransitions().get(0);
    WorkflowActivity firstActivity = firstTransition.getToWorkflowActivity();
    String childDispWorkId =
      caseDatabase.createWorkflowSubWork(
        workflowProcess,
        operator,
        userTransaction,
        workflowCase,
        firstActivity,
        parentDispWork,
        null,
        workflowWork.getDispatchTime());
    WorkflowWork childDispWork =
      caseDatabase.findWorkflowWork(workflowProcess, operator, userTransaction, workflowCase, childDispWorkId);
    caseDatabase.createWorkflowWorkEvent(
      workflowProcess,
      userTransaction,
      parentDispWork,
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

  {
    log.debug("[dispatch_r2p] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowCase workflowCase = workflowWork.getWorkflowCase();
    WorkflowSubWork subWork = (WorkflowSubWork) workflowWork;
    WorkflowWork parentWork = subWork.getParentWorkflowWork();

    caseDatabase.createWorkflowWorkEvent(
      workflowProcess,
      userTransaction,
      workflowWork,
      operator,
      workflowWork.getDispatchTime(),
      WorkflowActivityEvent.WORK_LEAVE_SUBFLOW,
      parentWork.getUUID());
    return DispatchController.dispatch_core(
      workflowService,
      workflowProcess,
      operator,
      caseDatabase,
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

          toActivity,
          null,
          workflowWork.getDispatchTime());
    }

    WorkflowWork autoDispWork =
      caseDatabase.findWorkflowWork(workflowProcess, operator, userTransaction, workflowCase, autoDispWorkId);

    caseDatabase.createWorkflowPath(
      workflowProcess,
      operator,
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

    log.debug("[dispatch_manual] postUsers: " + users);

    int sizePerformer = users.size();
    WorkflowParticipant performer = null;
    String dispWorkId = null;
    WorkflowWork dispWork = null;

    if (workflowWork instanceof WorkflowSubWork)
    {
      for (int i = 0; i < sizePerformer; ++i)
      {
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

    WorkflowCase workflowCase,
    String workId)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowWork workflowItem =
      spiCaseDatabase.findWorkflowWork(
        workflowProcess,
        participant,
        workflowCase,
        workId);
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowWork

    WorkflowCase workflowCase,
    String workId)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowWork workflowItem =
      spiCaseDatabase.findWorkflowWork(
        workflowProcess,
        participant,
        userTransaction,
        workflowCase,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.