Package org.huihoo.workflow.xpdl.activity

Examples of org.huihoo.workflow.xpdl.activity.SubFlowImplementation


      WorkflowActivity activity = null;
      Implementation impl = null;
      ToolImplementation toolImpl = null;
      ToolSet toolSet = null;
      SubFlowImplementation subFlowImpl = null;

      for (int j = 0; j < activitySize; ++j)
      {
        activity = (WorkflowActivity) activies.get(j);
        impl = activity.getImplementation();

        if (impl == null)
        {
          continue;
        }

        if ((impl instanceof ToolImplementation) && ActivityType.ACTIVITY_BUSINESS.equals(activity.getActivityType()))
        {
          toolImpl = (ToolImplementation) impl;
          String appId = toolImpl.getApplicationID();
          if ((appId == null) || (workflowPackage.findWorkflowApplication(appId) == null))
          {
            errorList.add(
              new WorkflowException(
                "Tool attribute 'Id' must be set.{packageID="
                  + workflowPackage.getUUID()
                  + ",processID="
                  + workflowProcess.getUUID()
                  + ",activityID="
                  + activity.getUUID()
                  + "}"));
          }
        }

        if ((impl instanceof ToolSet) && ActivityType.ACTIVITY_BUSINESS.equals(activity.getActivityType()))
        {
          toolSet = (ToolSet) impl;
          List toolImpls = toolSet.getToolKits();
          int toolImpls_size = toolImpls.size();

          for (int k = 0; k < toolImpls_size; ++k)
          {
            toolImpl = (ToolImplementation) toolImpls.get(k);
            String appId = toolImpl.getApplicationID();
            if ((appId == null) || (workflowPackage.findWorkflowApplication(appId) == null))
            {
              errorList.add(
                new WorkflowException(
                  "Tool attribute 'Id' must be set.{packageID="
                    + workflowPackage.getUUID()
                    + ",processID="
                    + workflowProcess.getUUID()
                    + ",activityID="
                    + activity.getUUID()
                    + "}"));
            }
          }
        }

        if ((impl instanceof SubFlowImplementation)
          && ActivityType.ACTIVITY_SUBFLOW.equals(activity.getActivityType()))
        {
          subFlowImpl = (SubFlowImplementation) impl;
          String processId = subFlowImpl.getProcessID();
          if ((processId == null) || (workflowPackage.findWorkflowProcess(processId) == null))
          {
            errorList.add(
              new WorkflowException(
                "SubFlow attribute 'Id' must be set.{packageID="
View Full Code Here


      WorkflowActivity activity = null;
      Implementation impl = null;
      ToolImplementation toolImpl = null;
      ToolSet toolSet = null;
      SubFlowImplementation subFlowImpl = null;

      for (int j = 0; j < activitySize; ++j)
      {
        activity = (WorkflowActivity) activies.get(j);
        impl = activity.getImplementation();
View Full Code Here

      }
      else if (impl instanceof SubFlowImplementation)
      {
        pushIdent(out, ident_unit + 1);
        out.write("<" + nsPrefix + "SubFlow");
        SubFlowImplementation subflow = (SubFlowImplementation) impl;
        if (subflow.getProcessID() != null)
        {
          out.write(" Id=\"" + subflow.getProcessID() + "\"");
        }
        out.write(">");
        newLine(out);
        pushIdent(out, ident_unit + 1);
        extendedAttriutes_impl(subflow.getExtendedAttributes(), out, nsPrefix, ident_unit + 1);
        out.write("</" + nsPrefix + "SubFlow>");
        newLine(out);
      }
      else if (impl instanceof ToolImplementation)
      {
View Full Code Here

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

TOP

Related Classes of org.huihoo.workflow.xpdl.activity.SubFlowImplementation

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.