Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Receive


   
    return activityElement;
  }

  protected Element receive2XML(Activity activity) {
    Receive receive = (Receive)activity;
    Element activityElement = createBPELElement("receive");
    if (receive.getPartnerLink() != null)
      activityElement.setAttribute("partnerLink", receive.getPartnerLink().getName());
    if (receive.getPortType() != null)
      activityElement.setAttribute("portType", bpelNamespacePrefixManager.qNameToString(receive, receive.getPortType().getQName()));
    if (receive.getOperation() != null)
      activityElement.setAttribute("operation", getOperationSignature(receive.getOperation()));
    if (receive.getVariable() != null)
      activityElement.setAttribute("variable", receive.getVariable().getName());
    if (receive.isSetCreateInstance())
      activityElement.setAttribute("createInstance",BPELUtils.boolean2XML(receive.getCreateInstance()));

    if (receive.getCorrelations() != null)
      activityElement.appendChild(correlations2XML(receive.getCorrelations()));     
   
    Iterator it = receive.getFromPart().iterator();
    while (it.hasNext()) {
      FromPart fromPart = (FromPart)it.next();
      activityElement.appendChild(fromPart2XML(fromPart));
    }
View Full Code Here


        if (result == null) result = caseWSDLElement(partnerActivity);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.RECEIVE: {
        Receive receive = (Receive)theEObject;
        Object result = caseReceive(receive);
        if (result == null) result = casePartnerActivity(receive);
        if (result == null) result = caseActivity(receive);
        if (result == null) result = caseExtensibleElement(receive);
        if (result == null) result = caseExtensibleElement_1(receive);
View Full Code Here

      invocationData.invokeScope.addActivity(invoke);
      invocationData.activity = invocationData.invokeScope.getActivity();
      invocationData.invoke = invoke;
    } else if (execNodeData.bottomUpProcess != null && execNodeData.operation != null){
      // this is an invocation of a web service provided by a process...
      Receive recv = BPELFactory.eINSTANCE.createReceive();
      recv.setPortType(execNodeData.portType);
      recv.setOperation(execNodeData.operation);
      invocationData.receiveScope = new BpelScopeImpl();
      invocationData.receiveScope.addActivity(recv);
      setRecvParameters(execNodeData.operation, recv,invocation.getArguments(),invocationData.receiveScope);
      invocationData.activity = invocationData.receiveScope.getActivity();
      invocationData.receive = recv;
    } else {
      if (invocation.getExecutable() != null &&
          invocation.getExecutable().getDeclaration() != null &&
          invocation.getExecutable().getDeclaration() instanceof CtMethod ){
        CtMethod m = (CtMethod)invocation.getExecutable().getDeclaration();
        ReplyActivity replyAnn = m.getAnnotation(ReplyActivity.class);
        if (replyAnn != null && invocation.getArguments().size() == 1){
          scan(invocation.getArguments().get(0));
          ASTNodeData arg = nodeDataStack.peek();
          if (arg.xsdType != null && arg.xpathExpr != null && arg.variable != null){
            for (Receive recv : methodReceiveMap.values()){
              if (recv.getName().equals(replyAnn.receiveName())){
                Reply reply = BPELFactory.eINSTANCE.createReply();
                String replyName = m.getSimpleName();
                if (!replyAnn.name().equals(""))
                  replyName = replyAnn.name();
                reply.setName(replyName);
View Full Code Here

TOP

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

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.