Package org.huihoo.workflow.xpdl

Examples of org.huihoo.workflow.xpdl.WorkflowApplication


    //  --------------------------------------------------------------- 
    List appList = workflowPackage.getWorkflowApplications();
    int app_size = appList.size();
    for (int i = 0; i < app_size; ++i)
    {
      WorkflowApplication app = (WorkflowApplication) appList.get(i);
      ExtendedAttribute attribute = app.findExtendedAttribute(XPDLGlobals.APPLICATION_QUALIFIED_CLASS_NAME);
      if (attribute != null)
      {
        String className = (String) attribute.getValue();
        if (className == null || className.length() == 0)
        {
          errorList.add(
            new WorkflowException(
              "application attribute '"
                + XPDLGlobals.APPLICATION_QUALIFIED_CLASS_NAME
                + "' must be set.{packageID="
                + workflowPackage.getUUID()
                + ",applicationID="
                + app.getUUID()
                + "}"));
        }
      }
      else
      {
        errorList.add(
          new WorkflowException(
            "application attribute '"
              + XPDLGlobals.APPLICATION_QUALIFIED_CLASS_NAME
              + "' must be set.{packageID="
              + workflowPackage.getUUID()
              + ",applicationID="
              + app.getUUID()
              + "}"));
      }
    }

    //  ---------------------------------------------------------------
View Full Code Here


    //  ---------------------------------------------------------------
    //   6. format application QualifiedClassName
    //  --------------------------------------------------------------- 
    List wfApps = workflowPackage.getWorkflowApplications();
    int wfAppSize = wfApps.size();
    WorkflowApplication wfApp = null;
    for (int i = 0; i < wfAppSize; ++i)
    {
      wfApp = (WorkflowApplication) wfApps.get(i);
      ExtendedAttribute attribute = wfApp.findExtendedAttribute(XPDLGlobals.APPLICATION_QUALIFIED_CLASS_NAME);
      if (attribute != null)
      {
        wfApp.setQualifiedClassName(attribute.getValue());
        wfApp.removeExtendedAttribute(XPDLGlobals.APPLICATION_QUALIFIED_CLASS_NAME);
      }
    }

    //  ---------------------------------------------------------------
    //   7. validate workflowActivity Implementation & ActivityType
View Full Code Here

    return (this.packageHeader);
  }
  public WorkflowApplication findWorkflowApplication(String appId)
  {
    int sizeApp = applications.size();
    WorkflowApplication app = null;
    for (int i = 0; i < sizeApp; ++i)
    {
      app = (WorkflowApplication) applications.get(i);
      if (app.getUUID().equals(appId))
      {
        return app;
      }
    }
    return null;
View Full Code Here

    try
    {
      WorkflowCase workflowCase = workItem.getWorkflowCase();
      WorkflowPackage pkg = workflowCase.getWorkflowProcess().getWorkflowPackage();
      WorkflowApplication app = pkg.findWorkflowApplication(getApplicationID());
      String implClassName = app.getQualifiedClassName();
      Class implClass = loader.loadClass(implClassName);

      WorkflowCall call = (WorkflowCall) implClass.newInstance();
      call.invoke(workItem, makeParamerers(workflowCase, app));
    }
View Full Code Here

    }
   
    int sizeApp = applications.size();
    for (int i = 0; i < sizeApp; ++i)
    {
      WorkflowApplication app= (WorkflowApplication) applications.get(i);
      if (appId.equals(app.getUUID()))
      {
        return app;
      }
    }
    return null;
View Full Code Here

    }
   
    int sizeApp = applications.size();
    for (int i = 0; i < sizeApp; ++i)
    {
      WorkflowApplication app= (WorkflowApplication) applications.get(i);
      if (appNameOrID.equals(app.getName()))
      {
        return app;
      }
    }
    return null;
View Full Code Here

TOP

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

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.