Package org.huihoo.workflow.xpdl

Examples of org.huihoo.workflow.xpdl.WorkflowTransition


      {
        throw new NoSuchMethodException("Bean has no property named " + actualName);
      }
    }
    // Set the property (with conversion as necessary)
    WorkflowTransition target = (WorkflowTransition) top;
    //System.err.println("[target] " + target);

    if (actualValueId != null && actualValueId.length() > 0)
    {
      //System.err.println("[SetTransitionActivityRule]----------------------- ");
      WorkflowProcess workflowPocess = target.getWorkflowProcess();
      //System.err.println("[Process] "+workflowPocess);

      activity = workflowPocess.findWorkflowActivity(actualValueId);
    //  System.err.println("[WorkflowTransition] Id=" + target.getUUID() + ",activity=" + actualName);
    //  System.err.println("[WorkflowActivity] activity=" + activity + ",Id=" + actualValueId);
View Full Code Here


    }
   
    int size=transitions.size();
    for(int i=0;i<size;++i)
    {
      WorkflowTransition  target=(WorkflowTransition)transitions.get(i);
      if(transitionId.equals(target.getUUID()))
      {
        return target;
      }
    }
    return null;
View Full Code Here

    }
   
    int size=transitions.size();
    for(int i=0;i<size;++i)
    {
      WorkflowTransition  target=(WorkflowTransition)transitions.get(i);
      if(transitionNameOrID.equals(target.getName()))
      {
        return target;
      }
    }
    return null;
View Full Code Here

 
  public WorkflowTransition findWorkflowTransition(
    WorkflowActivity fromActivity,
    WorkflowActivity toActivity)
  {
    WorkflowTransition target=null;
    WorkflowActivity from=null;
    WorkflowActivity to=null;
   
    for(int i=0;i<transitions.size();++i)
    {
      target=(WorkflowTransition)transitions.get(i);
      from=target.getFromWorkflowActivity();
      to=target.getToWorkflowActivity();
     
      if(from.equals(fromActivity) && to.equals(toActivity))
      {
        return target;
      }
View Full Code Here

    //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,
View Full Code Here

    workflowWork.setDispatchTime(new java.util.Date());
    caseDatabase.updateWorkflowWork(workflowProcess, operator, userTransaction, workflowWork);

    //------------------------------------------------------------------------------------
    //------------------------------------------------------------------------------------
    WorkflowTransition customizedTransition = dispatch_revert(workflowService,workflowProcess,operator,caseDatabase,userTransaction,workflowWork);

    List filterTrans = null;

    if (customizedTransition == null)
    {
      filterTrans =
        OutTransitionFilter.filterOutTransition(workflowService,
          operator,
          caseDatabase,
          userTransaction,
          workflowWork);
    }
    else
    {
      filterTrans = new ArrayList();
      filterTrans.add(customizedTransition);
    }

    int sizeTrans = filterTrans.size();

    if (sizeTrans > 0)
    {
      WorkflowTransition transition = null;

      //-------------------------------------------------------------
      //   �������ɷ������Ĺ�����ʹ����ͬ���ɷ��Ǻ�
      //--------------------------------------------------------------
      String pathDispBatch = null;
View Full Code Here

  {
    WorkflowActivity workflowActivity = workflowWork.getWorkflowActivity();
    WorkflowCase workflowCase = workflowWork.getWorkflowCase();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();

    WorkflowTransition rever_transition = null;

    //�ɷ��Ĺ��������ɻ���(revert)�����Ĺ������Ҫ���⴦��
    String strSQL =
      "SELECT    vc_from,vc_owner_processid,vc_transitionid FROM "
        + caseDatabase.getSchemaContext().getTableName(SchemaContext.SCHEMA_PATH)
View Full Code Here

      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

TOP

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

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.