Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.From


      scan(arg);
      ASTNodeData argNodeData = nodeDataStack.peek();
     
      // doc/literal has one part, which is an element, which contains sub-elements for each param
      if (argNodeData.xpathExpr != null){
        From from = BPELFactory.eINSTANCE.createFrom();
       
        if (argNodeData.variable != null){
          from.setVariable(argNodeData.variable)
          Query fromQuery = BPELFactory.eINSTANCE.createQuery();
          fromQuery.setQueryLanguage(XPATH_NAMESPACE);
          fromQuery.setValue(argNodeData.xpathExpr.evaluate());
          from.setQuery(fromQuery);
        } else if (argNodeData.xpathLiteralExpr != null){
          Expression expr = BPELFactory.eINSTANCE.createExpression();         
          expr.setBody(argNodeData.xpathLiteralExpr.evaluate());
          from.setExpression(expr);
        }
       
        To to = BPELFactory.eINSTANCE.createTo();
        to.setVariable(tmp);
        Query toQuery = BPELFactory.eINSTANCE.createQuery();
View Full Code Here


    javax.jws.soap.SOAPBinding soapBinding = operationSoapBindingMap.get(operation);
    List<Part> msgParts = operation.getOutput().getMessage().getOrderedParts(null);
    Variable tmp = createTempMsgVar((Message)operation.getOutput().getMessage(),scope);
    invoke.setOutputVariable(tmp);
   
    From from = BPELFactory.eINSTANCE.createFrom();
    from.setVariable(tmp);
    Query fromQuery = BPELFactory.eINSTANCE.createQuery();
   
    if (soapBinding == null ||
        (soapBinding != null &&
        soapBinding.style() == javax.jws.soap.SOAPBinding.Style.DOCUMENT &&
        soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL &&
        soapBinding.parameterStyle() == javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED)){
      XSDElementDeclaration el = wsdlDocLitWrapResultMap.get(operation);
      //fromQuery.setValue("$" + tmp.getName() + "." + msgParts.get(0).getName() + "/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
      from.setPart(msgParts.get(0));
      fromQuery.setValue("/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
      from.setQuery(fromQuery);
    } else if (soapBinding != null &&
        soapBinding.style() == javax.jws.soap.SOAPBinding.Style.RPC &&
        soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL){
      //fromQuery.setValue("$" + tmp.getName() + "." + msgParts.get(argIndex).getName());
      from.setPart(msgParts.get(0));
    }
   
    To to = BPELFactory.eINSTANCE.createTo();
    to.setVariable(resultData.variable);
    Query toQuery = BPELFactory.eINSTANCE.createQuery();
View Full Code Here

      scan(arg);
      ASTNodeData argNodeData = nodeDataStack.peek();
     
      // doc/literal has one part, which is an element, which contains sub-elements for each param
      if (argNodeData.variable != null && argNodeData.xpathExpr != null){
        From from = BPELFactory.eINSTANCE.createFrom();
        from.setVariable(tmp);
        Query fromQuery = BPELFactory.eINSTANCE.createQuery();
        fromQuery.setQueryLanguage(XPATH_NAMESPACE);
       
        if (soapBinding == null ||
            (soapBinding != null &&
            soapBinding.style() == javax.jws.soap.SOAPBinding.Style.DOCUMENT &&
            soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL &&
            soapBinding.parameterStyle() == javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED)){
          XSDElementDeclaration el = wsdlDocLitParamElemMap.get(operation).get(argIndex);
          //fromQuery.setValue("$" + tmp.getName() + "." + msgParts.get(0).getName() + "/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
          from.setPart(msgParts.get(0));
          fromQuery.setValue("/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
          from.setQuery(fromQuery);
        } else if (soapBinding != null &&
            soapBinding.style() == javax.jws.soap.SOAPBinding.Style.RPC &&
            soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL){
          //fromQuery.setValue("$" + tmp.getName() + "." + msgParts.get(argIndex).getName());
          from.setPart(msgParts.get(argIndex));
        }                     
       
        To to = BPELFactory.eINSTANCE.createTo();
        to.setVariable(argNodeData.variable);
        Query toQuery = BPELFactory.eINSTANCE.createQuery();
View Full Code Here

    reply.setPartnerLink(recv.getPartnerLink());
    reply.setOperation(operation);
    reply.setPortType(recv.getPortType());   
    reply.setVariable(variable);
   
    From from = BPELFactory.eINSTANCE.createFrom();
    from.setVariable(variable);
    Query fromQuery = BPELFactory.eINSTANCE.createQuery();
    fromQuery.setValue(xpath.evaluate());
    fromQuery.setQueryLanguage(XPATH_NAMESPACE);
    from.setQuery(fromQuery);
   
    To to = BPELFactory.eINSTANCE.createTo();
    to.setVariable(variable);
    Query toQuery = BPELFactory.eINSTANCE.createQuery();
    toQuery.setQueryLanguage(XPATH_NAMESPACE);
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFrom(From newFrom, NotificationChain msgs) {
    From oldFrom = from;
    from = newFrom;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.COPY__FROM, oldFrom, newFrom);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFrom(From newFrom, NotificationChain msgs) {
    From oldFrom = from;
    from = newFrom;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.VARIABLE__FROM, oldFrom, newFrom);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

TOP

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

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.