Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.ForEach


        if (result == null) result = caseWSDLElement(opaqueActivity);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.FOR_EACH: {
        ForEach forEach = (ForEach)theEObject;
        Object result = caseForEach(forEach);
        if (result == null) result = caseActivity(forEach);
        if (result == null) result = caseExtensibleElement(forEach);
        if (result == null) result = caseExtensibleElement_1(forEach);
        if (result == null) result = caseWSDLElement(forEach);
View Full Code Here


    Element activityElement = createBPELElement("opaqueActivity");
    return activityElement;
  }

  protected Element forEach2XML(Activity activity) {
    ForEach forEach = (ForEach)activity;
    Element activityElement = createBPELElement("forEach");
   
    if (forEach.getParallel() != null)
      activityElement.setAttribute("parallel", BPELUtils.boolean2XML(forEach.getParallel()));
   
    if (forEach.getCounterName() != null) {
      activityElement.setAttribute("counterName", forEach.getCounterName().getName());
    }
   
    if (forEach.getStartCounterValue() != null) {
      activityElement.appendChild(expression2XML(forEach.getStartCounterValue(), "startCounterValue"));
    }
   
    if (forEach.getFinalCounterValue() != null) {
      activityElement.appendChild(expression2XML(forEach.getFinalCounterValue(), "finalCounterValue"));
    }
   
    CompletionCondition completionCondition = forEach.getCompletionCondition();
    if (completionCondition != null) {
      Element completionConditionElement = completionCondition2XML(completionCondition);
      activityElement.appendChild(completionConditionElement);
    }

    if (forEach.getActivity() != null ){
      activityElement.appendChild(activity2XML(forEach.getActivity()));
    }
    return activityElement;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.model.ForEach

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.