Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Query


      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();
        toQuery.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);
          //toQuery.setValue("$" + tmp.getName() + "." + msgParts.get(0).getName() + "/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
          to.setPart(msgParts.get(0));
          toQuery.setValue("/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
          to.setQuery(toQuery);
        } else if (soapBinding != null &&
            soapBinding.style() == javax.jws.soap.SOAPBinding.Style.RPC &&
            soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL){
          //toQuery.setValue("$" + tmp.getName() + "." + msgParts.get(argIndex).getName());
View Full Code Here


    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();
    toQuery.setQueryLanguage(XPATH_NAMESPACE);
    toQuery.setValue(resultData.xpathExpr.evaluate());
   
    Copy copy = BPELFactory.eINSTANCE.createCopy();
    copy.setFrom(from);
    copy.setTo(to);
   
View Full Code Here

     
      // 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();
        toQuery.setQueryLanguage(XPATH_NAMESPACE);
        toQuery.setValue(argNodeData.xpathExpr.evaluate());
        to.setQuery(toQuery);
       
        Copy copy = BPELFactory.eINSTANCE.createCopy();
        copy.setFrom(from);
        copy.setTo(to);
View Full Code Here

    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);
   
    javax.jws.soap.SOAPBinding soapBinding = operationSoapBindingMap.get(operation);
    Message message = null;
    javax.wsdl.Fault f = operation.getFault(type.getName());
    if (f != null){
View Full Code Here

TOP

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

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.