Examples of ParameterContext


Examples of org.uengine.kernel.ParameterContext

       
        //correlation setting
        boolean initiateCorrelation = false;
        ProcessVariable identifier = srcAct.getFromRole().getIdentifier();
        if(identifier!=null){
          ParameterContext params[] = srcAct.getParameters();
   
          if(params!=null && params.length>0)
          for(int i=0; i<params.length; i++){
            if(params[i].equals(identifier)){
              initiateCorrelation = true;
              break;
            }
          }
        }
       
        if(initiateCorrelation){
          tCorrelations correlations = new tCorrelations();
          tCorrelation correlation = new tCorrelation();
          correlation.setinitiate_Attribute(tBoolean.YES);
          correlation.setset_Attribute(new XNCName(fromRole + "Identification"));
          correlations.addcorrelation(correlation);
          destAct.setcorrelations(correlations);   
        }
        //
       
      }else{
        fromRole = "myRole";
      }
           
      destAct.setpartnerLink_Attribute(new XNCName(fromRole));
     
      destAct.setvariable_Attribute(new XNCName(variableName));
    }
    //---- end of receive activity ----

    activity actGrp = new activity();
    actGrp.setreceiveAsChoice(destAct);
    destSeqAct.addactivity_Group(actGrp);

   
    //---- build copy activity ----
    boolean assignUsed = true;
    tAssign assign = new tAssign();{
      ParameterContext params[] = srcAct.getParameters();
     
      if(params==null || params.length==0)
        assignUsed = false;
      else
      for(int i=0; i<params.length; i++){
        ParameterContext param = params[i];
       
        tCopy copy = new tCopy();{
          tFrom tfr = new tFrom();
          tfr.setvariable_Attribute(new XNCName(variableName));
          tfr.setpart_Attribute(new XNCName(/*param.getArgument()*/"in" + i));
          from fr = new from();
          fr.settFromComplexType(tfr);
         
          to tto = new to();
          tto.setvariable_Attribute(new XNCName(param.getVariable().getName()));
                       
          copy.setfrom(fr);
          copy.setto(tto);
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.