Package org.huihoo.workflow.xpdl.activity

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


      int activitySize = activies.size();

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


      int activitySize = activies.size();

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

      {
        serializeTool((ToolImplementation) impl, out, nsPrefix, ident_unit + 1);
      }
      else if (impl instanceof ToolSet)
      {
        ToolSet toolSet = (ToolSet) impl;
        List tools = toolSet.getToolKits();
        for (int i = 0; i < tools.size(); ++i)
        {
          serializeTool((ToolImplementation) tools.get(i), out, nsPrefix, ident_unit + 1);
        }
      }
View Full Code Here

    }
   
    if(implementation instanceof ToolImplementation)
    {
      ToolImplementation temp=(ToolImplementation)implementation;
      implementation = new ToolSet();
      ToolSet toolSet = (ToolSet) implementation;
      toolSet.addToolKit(temp);
      toolSet.addToolKit(toolImpl);
    }
    else if(implementation instanceof ToolSet)
    {
      ToolSet toolSet = (ToolSet) implementation;
      toolSet.addToolKit(toolImpl);
    }
    else
    {
      implementation = new ToolSet();
      ToolSet toolSet = (ToolSet) implementation;
      toolSet.addToolKit(toolImpl);
    }
   
  }
View Full Code Here

TOP

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

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.