ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yebo <yebo1...@qq.com>
Subject ODE while error
Date Fri, 19 Sep 2008 04:27:25 GMT

I can get correct result in Active BPEL. But i get wrong result in ODE.

in:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ns0="http://bupt.edu.cn" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <ns0:getHelloWorld>
      0 
    </ns0:getHelloWorld>
  </soapenv:Body>
</soapenv:Envelope>

expected out:
i0Hello 1 World Hello 2 World Hello 3 World Hello 4 World

In ODE out:
i0

in ode the while does not run.while? Any one know? Thank you very much.

my bpel is:

<?xml version="1.0" encoding="UTF-8"?>
<!--
BPEL Process Definition
Edited using ActiveBPEL(r) Designer Version 4.1.0
(http://www.active-endpoints.com)
-->
<bpel:process
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns1="http://bupt.edu.cn" xmlns:ns2="CreateConference.xsl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="getHelloWorld"
suppressJoinFailure="yes" targetNamespace="http://getHelloWorld">
   <bpel:import importType="http://schemas.xmlsoap.org/wsdl/"
location="WSDL/Hello.wsdl" namespace="http://bupt.edu.cn"/>
   <bpel:partnerLinks>
      <bpel:partnerLink myRole="getHelloPLTRole" name="TestHelloPLT"
partnerLinkType="ns1:TestHelloPLT" partnerRole="getHelloPLTRole"/>
   </bpel:partnerLinks>
   <bpel:variables>
      <bpel:variable messageType="ns1:getHelloWorldRequest"
name="getHelloWorldRequest"/>
      <bpel:variable messageType="ns1:getHelloWorldResponse"
name="getHelloWorldResponse"/>
      <bpel:variable name="repeatTimes" type="xsd:positiveInteger"/>
      <bpel:variable name="repeat" type="xsd:positiveInteger"/>
   </bpel:variables>
   <bpel:flow>
      <bpel:links>
         <bpel:link name="L1"/>
         <bpel:link name="L2"/>
         <bpel:link name="L3"/>
         <bpel:link name="L4"/>
      </bpel:links>
      <bpel:sequence>
         <bpel:receive createInstance="yes" operation="getHelloWorld"
partnerLink="TestHelloPLT" portType="ns1:Hello"
variable="getHelloWorldRequest">
            <bpel:sources>
               <bpel:source linkName="L1"/>
            </bpel:sources>
         </bpel:receive>
         <bpel:invoke inputVariable="getHelloWorldRequest"
operation="getHelloWorld" outputVariable="getHelloWorldResponse"
partnerLink="TestHelloPLT" portType="ns1:Hello">
            <bpel:targets>
               <bpel:target linkName="L1"/>
            </bpel:targets>
            <bpel:sources>
               <bpel:source linkName="L2"/>
            </bpel:sources>
         </bpel:invoke>
         <bpel:assign name="Initial">
            <bpel:targets>
               <bpel:target linkName="L2"/>
            </bpel:targets>
            <bpel:sources>
               <bpel:source linkName="L3"/>
            </bpel:sources>
            <bpel:copy>
               <bpel:from>
                  <bpel:literal>1</bpel:literal>
               </bpel:from>
               <bpel:to variable="repeatTimes"/>
            </bpel:copy>
            <bpel:copy>
               <bpel:from>
                  <bpel:literal>5</bpel:literal>
               </bpel:from>
               <bpel:to variable="repeat"/>
            </bpel:copy>
         </bpel:assign>
         <bpel:while name="TestWhile">
            <bpel:targets>
               <bpel:target linkName="L3"/>
            </bpel:targets>
            <bpel:sources>
               <bpel:source linkName="L4"/>
            </bpel:sources>
            <bpel:condition>$repeatTimes &lt; $repeat</bpel:condition>
            <bpel:sequence name="TestSequence">
               <bpel:assign>
                  <bpel:copy>
                     <bpel:from part="parameters"
variable="getHelloWorldResponse">
                        <bpel:query>concat(ns1:getHelloWorldReturn,
'Hello')</bpel:query>
                     </bpel:from>
                     <bpel:to part="parameters"
variable="getHelloWorldResponse">
                        <bpel:query>ns1:getHelloWorldReturn</bpel:query>
                     </bpel:to>
                  </bpel:copy>
                  <bpel:copy>
                    
<bpel:from>bpel:doXslTransform('WSDL/CreateConference.xsl',
$getHelloWorldResponse.parameters, 'hello',
$getHelloWorldResponse.parameters/ns1:getHelloWorldReturn, 'number',
$repeatTimes )</bpel:from>
                     <bpel:to part="parameters"
variable="getHelloWorldResponse"/>
                  </bpel:copy>
                  <bpel:copy>
                     <bpel:from variable="repeatTimes">
                        <bpel:query>$repeatTimes +1</bpel:query>
                     </bpel:from>
                     <bpel:to variable="repeatTimes"/>
                  </bpel:copy>
               </bpel:assign>
            </bpel:sequence>
         </bpel:while>
         <bpel:reply operation="getHelloWorld" partnerLink="TestHelloPLT"
portType="ns1:Hello" variable="getHelloWorldResponse">
            <bpel:targets>
               <bpel:target linkName="L4"/>
            </bpel:targets>
         </bpel:reply>
      </bpel:sequence>
   </bpel:flow>
</bpel:process>

deploy.xml:
<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"
        xmlns:pns="http://getHelloWorld"
        xmlns:yebo="http://bupt.yebo"
        xmlns:sns="http://bupt.edu.cn">
    <process name="pns:getHelloWorld">
        <active>true</active>
        <provide partnerLink="TestHelloPLT">
            <service name="sns:HelloService" port="Hello"/>
        </provide>
        <invoke partnerLink="TestHelloPLT">
            <service name="yebo:yebo_HelloService"
port="yebo_helloHttpPort"/>
        </invoke>
    </process>
</deploy>
-- 
View this message in context: http://www.nabble.com/ODE--while--error-tp19566046p19566046.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Mime
View raw message