Package org.huihoo.workflow.runtime

Examples of org.huihoo.workflow.runtime.WorkflowSubWork


    //1) create org.huihoo.workflow work for subflow task node
    String parentDispWorkId = null;
    if (workflowWork instanceof WorkflowSubWork)
    {
      //performer is null
      WorkflowSubWork subWork = (WorkflowSubWork) workflowWork;
      parentDispWorkId =
        caseDatabase.createWorkflowSubWork(
          workflowProcess,
          operator,
          userTransaction,
          workflowCase,
          toActivity,
          subWork.getParentWorkflowWork(),
          null,
          subWork.getDispatchTime());
    }
    else
    {
      //performer is null
      parentDispWorkId =
View Full Code Here


    throws WorkflowException, ScriptException
  {
    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,
View Full Code Here

    WorkflowActivity toActivity = workflowTransition.getToWorkflowActivity();
    String autoDispWorkId = null;
    if (workflowWork instanceof WorkflowSubWork)
    {
      //performer is null
      WorkflowSubWork subWork = (WorkflowSubWork) workflowWork;
      autoDispWorkId =
        caseDatabase.createWorkflowSubWork(
          workflowProcess,
          operator,
          userTransaction,
          workflowCase,
          toActivity,
          subWork.getParentWorkflowWork(),
          null,
          subWork.getDispatchTime());
    }
    else
    {
      //performer is null
      autoDispWorkId =
View Full Code Here

    if (workflowWork instanceof WorkflowSubWork)
    {
      for (int i = 0; i < sizePerformer; ++i)
      {
        performer = (WorkflowParticipant) users.get(i);
        WorkflowSubWork subWork = (WorkflowSubWork) workflowWork;
        dispWorkId =
          caseDatabase.createWorkflowSubWork(
            workflowProcess,
            operator,
            userTransaction,
            workflowCase,
            workflowActivity,
            subWork.getParentWorkflowWork(),
            performer,
            subWork.getDispatchTime());

        dispWork = caseDatabase.findWorkflowWork(workflowProcess, operator, workflowCase, dispWorkId);
        caseDatabase.createWorkflowPath(
          workflowProcess,
          operator,
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.runtime.WorkflowSubWork

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.