Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Scope


    }
    return activityElement;
  }

  protected Element scope2XML(Activity activity) {
    Scope scope = (Scope)activity;
    Element activityElement = createBPELElement("scope");
   
    if (scope.isSetIsolated())
      activityElement.setAttribute("isolated", BPELUtils.boolean2XML(scope.getIsolated()));
    if (scope.isSetExitOnStandardFault())
      activityElement.setAttribute("exitOnStandardFault", BPELUtils.boolean2XML(scope.getExitOnStandardFault()));
    if (scope.getVariables() != null && !scope.getVariables().getChildren().isEmpty())
      activityElement.appendChild(variables2XML(scope.getVariables()));
    if (scope.getCorrelationSets() != null && !scope.getCorrelationSets().getChildren().isEmpty())
      activityElement.appendChild(correlationSets2XML(scope.getCorrelationSets()));
    if (scope.getPartnerLinks() != null && !scope.getPartnerLinks().getChildren().isEmpty())
      activityElement.appendChild(partnerLinks2XML(scope.getPartnerLinks()));
    if (scope.getFaultHandlers() != null )
      activityElement.appendChild(faultHandlers2XML(scope.getFaultHandlers()));
    if (scope.getCompensationHandler() != null )
      activityElement.appendChild(compensationHandler2XML(scope.getCompensationHandler()));
    if (scope.getTerminationHandler() != null )
      activityElement.appendChild(terminationHandler2XML(scope.getTerminationHandler()));
    if (scope.getEventHandlers() != null)
      activityElement.appendChild(eventHandler2XML(scope.getEventHandlers()));
    if (scope.getMessageExchanges() != null)
      activityElement.appendChild(messageExchanges2XML(scope.getMessageExchanges()));
    if (scope.getActivity() != null )
      activityElement.appendChild(activity2XML(scope.getActivity()));
    return activityElement;
  }
View Full Code Here


        if (result == null) result = caseWSDLElement(extension);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.SCOPE: {
        Scope scope = (Scope)theEObject;
        Object result = caseScope(scope);
        if (result == null) result = caseActivity(scope);
        if (result == null) result = caseExtensibleElement(scope);
        if (result == null) result = caseExtensibleElement_1(scope);
        if (result == null) result = caseWSDLElement(scope);
View Full Code Here

    // intentionally starts with a broad set of candidates (the entire
    // containment hierarchy) and prunes away the uninteresting parts.
    for (TreeIterator i = enclosingScopeOrProcess.eAllContents(); i.hasNext();) {
      EObject next = (EObject) i.next();
      if (next instanceof Scope) {
        Scope candidate = (Scope) next;
        if (scopeName.equals(candidate.getName())) {
          setTarget(candidate);
          return;
        }
        // JM: Do not prune the subtree. A scope here which doesn't match
        // may contain another scope which does.
        //i.prune();
      } else if (next instanceof Invoke) {
        Invoke candidate = (Invoke) next;
        if (scopeName.equals(candidate.getName())) {
          setTarget(candidate);
          return;
        }
        i.prune();
      }
View Full Code Here

TOP

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

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.