Package org.huihoo.workflow.xpdl.parameter

Examples of org.huihoo.workflow.xpdl.parameter.FormalParameter


  }
 
  public FormalParameter findFormalParameter(int index)
  {
    int sizeParams=parameters.size();
    FormalParameter result=null;
   
    for(int i=0;i<sizeParams;++i)
    {
      result=(FormalParameter)parameters.get(i);
     
      if(result.getIndex()==index)
      {
        return result;
      }
     
    }
View Full Code Here


  }
 
  public FormalParameter findFormalParameter(String id)
  {
    int sizeParams=parameters.size();
    FormalParameter result=null;
   
    for(int i=0;i<sizeParams;++i)
    {
      result=(FormalParameter)parameters.get(i);
     
      if(result.getUUID().equals(id))
      {
        return result;
      }
     
    }
View Full Code Here

  private WorkflowParameter[] makeParamerers(WorkflowCase workflowCase, WorkflowApplication app)
    throws CloneNotSupportedException
  {
    WorkflowParameter[] params = null;

    FormalParameter formalParameter = null;
    WorkflowParameter initParameter = null;
    ActualParameter actualParameter = null;

    ParameterMode paramMode = null;
    Class srcClass = null;
    Class dstClass = null;

    int sizeParams = app.getFormalParameters().size();

    params = new WorkflowParameter[sizeParams];

    for (int i = 0; i < sizeParams; ++i)
    {
      formalParameter = app.findFormalParameter(i);
      actualParameter = (ActualParameter) parameters.get(i);
      initParameter = workflowCase.getCaseContext().getParameterByName(actualParameter.getUUID());

      srcClass = formalParameter.getType();
      dstClass = initParameter.getType();
      paramMode = formalParameter.getMode();

      if (dstClass.equals(srcClass))
      {
        if (paramMode.equals(ParameterMode.MODE_IN))
        {
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.xpdl.parameter.FormalParameter

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.