Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Invoke


   
    return activityElement;
  }

  protected Element invoke2XML(Activity activity) {
    Invoke invoke = (Invoke)activity;
    Element activityElement = createBPELElement("invoke");
    if (invoke.getPartnerLink() != null)
      activityElement.setAttribute("partnerLink", invoke.getPartnerLink().getName());
    if (invoke.getPortType() != null)
      activityElement.setAttribute("portType", bpelNamespacePrefixManager.qNameToString(invoke, invoke.getPortType().getQName()));
    if (invoke.getOperation() != null)
      activityElement.setAttribute("operation", getOperationSignature(invoke.getOperation()));
    if (invoke.getInputVariable() != null)
      activityElement.setAttribute("inputVariable", invoke.getInputVariable().getName());
    if (invoke.getOutputVariable() != null)
      activityElement.setAttribute("outputVariable", invoke.getOutputVariable().getName());
     
    if (invoke.getCorrelations() != null)
      activityElement.appendChild(correlations2XML(invoke.getCorrelations()));
   
    FaultHandler faultHandler = invoke.getFaultHandler();
    if (faultHandler != null) {
      faultHandler2XML(activityElement, faultHandler);
    }
   
    if (invoke.getCompensationHandler() != null)
      activityElement.appendChild(compensationHandler2XML(invoke.getCompensationHandler()));
   
    Iterator it = invoke.getFromPart().iterator();
    while (it.hasNext()) {
      FromPart fromPart = (FromPart)it.next();
      activityElement.appendChild(fromPart2XML(fromPart));
    }
    it = invoke.getToPart().iterator();
    while (it.hasNext()) {
      ToPart toPart = (ToPart)it.next();
      activityElement.appendChild(toPart2XML(toPart));
    }
   
View Full Code Here


        if (result == null) result = caseWSDLElement(correlationSet);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.INVOKE: {
        Invoke invoke = (Invoke)theEObject;
        Object result = caseInvoke(invoke);
        if (result == null) result = casePartnerActivity(invoke);
        if (result == null) result = caseActivity(invoke);
        if (result == null) result = caseExtensibleElement(invoke);
        if (result == null) result = caseExtensibleElement_1(invoke);
View Full Code Here

        }
        // 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

      invocationData.activity = execNodeData.receiveActivity;
    } else if (execNodeData.replyActivity != null){
      invocationData.activity = execNodeData.replyActivity;
    } else if (targetNodeData.partnerLink != null && execNodeData.operation != null){
      // this in an invocation of a partner's web service...
      Invoke invoke = BPELFactory.eINSTANCE.createInvoke();
      invoke.setPortType(execNodeData.portType);
      invoke.setOperation(execNodeData.operation);
      invoke.setPartnerLink(targetNodeData.partnerLink);
      invocationData.invokeScope = new BpelScopeImpl();
      setInvokeParameters(execNodeData.operation,invoke,invocation.getArguments(),invocationData.invokeScope);
      invocationData.invokeScope.addActivity(invoke);
      invocationData.activity = invocationData.invokeScope.getActivity();
      invocationData.invoke = invoke;
View Full Code Here

TOP

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

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.