Package org.huihoo.workflow.runtime

Examples of org.huihoo.workflow.runtime.WorkflowWork


    finally
    {
      ConnUtils.cleanupNoThrow(pstmt);
    }

    WorkflowWork fromWork =
      caseDatabase.findWorkflowWork(
        workflowProcess,
        operator,
        userTransaction,
        workflowCase,
        fromWorkID);
    WorkflowParticipant participant = fromWork.getPerformer();

    String dispWorkId =
      caseDatabase.createWorkflowWork(
        workflowProcess,
        operator,
        userTransaction,
        workflowCase,
        activity,
        participant,
        workflowWork.getDispatchTime());
    String pathDispBatch =
      caseDatabase.getCaseIdGenerator().genWorkflowPathBatch(
        workflowPackage.getUUID(),
        workflowProcess.getUUID(),
        activity.getUUID(),
        workflowCase.getUUID());

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


        {
          //��·�ַ���֧��ȡ�ز���
          throw new WorkflowException("WorkflowWork broadcast dispatch");
        }

        WorkflowWork toWork =
          caseDatabase.findWorkflowWork(
            workflowProcess,
            operator,
            userTransaction,
            workflowCase,
View Full Code Here

        if (rs.next())
        {
          throw new WorkflowException("Fatal WorkflowService Engine Error");
        }

        WorkflowWork fromWork =
          caseDatabase.findWorkflowWork(
            workflowProcess,
            operator,
            userTransaction,
            workflowCase,
            fromWorkID);

        String vc_owner_processid = rs.getString("vc_owner_processid");
        if (vc_owner_processid != null && !"".equals(vc_owner_processid))
        {
          String vc_transitionid = rs.getString("vc_transitionid");
          WorkflowProcess owner_processid = workflowPackage.findWorkflowProcess(vc_owner_processid);
          rever_transition = owner_processid.findWorkflowTransition(vc_transitionid);
        }
        else
        {
          rever_transition =
            workflowProcess.findWorkflowTransition(
              workflowWork.getWorkflowActivity(),
              fromWork.getWorkflowActivity());
        }

        //�����ߴ����߼��������ڲ����ݽṹ�����й�ϵ
        workflowCase.getCaseContext().setPerformersByTransition(
          rever_transition,
          new WorkflowParticipant[] { fromWork.getPerformer()});
      }
    }
    catch (SQLException ex)
    {
      throw new WorkflowException(ex);
View Full Code Here

    {
      //�������ز�һ��,throw InternalError()???
    }
    else
    {
      WorkflowWork andJoinWork =
        caseDatabase.findWorkflowWork(
          workflowProcess,
          operator,
          userTransaction,
          workflowWork.getWorkflowCase(),
View Full Code Here

    }
    if (eventResult.first())
    {
      String xorJoinWorkId = eventResult.getJoinWorkID();
      WorkflowWork xorJoinWork =
        caseDatabase.findWorkflowWork(
          workflowProcess,
          operator,
          userTransaction,
          workflowWork.getWorkflowCase(),
View Full Code Here

    {
      //�������ز�һ��,throw InternalError()???
    }
    else
    {
      WorkflowWork orJoinWork =
        caseDatabase.findWorkflowWork(
          workflowProcess,
          operator,
          userTransaction,
          workflowWork.getWorkflowCase(),
View Full Code Here

        userTransaction,
        workflowWork.getWorkflowCase(),
        routeActivity,
        null,
        workflowWork.getDispatchTime());
    WorkflowWork routeJoinWork =
      caseDatabase.findWorkflowWork(
        workflowProcess,
        operator,
        userTransaction,
        workflowWork.getWorkflowCase(),
View Full Code Here

    {
      //�������ز�һ��,throw InternalError()???
    }
    else
    {
      WorkflowWork andJoinWork =
        caseDatabase.findWorkflowWork(
          workflowProcess,
          operator,
          userTransaction,
          workflowWork.getWorkflowCase(),
View Full Code Here

    log.debug("\ninstanceXorJoin monitorEvent == > "+monitorEvent);
   
    if (eventResult.first())
    {
      String xor_work_id = eventResult.getJoinWorkID();
      WorkflowWork xorJoinWork =
        caseDatabase.findWorkflowWork(
          workflowProcess,
          operator,
          userTransaction,
          workflowWork.getWorkflowCase(),
View Full Code Here

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

TOP

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

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.