| [news.eclipse.technology.bpel-designer] Re: xpath problem in a simple assign operation |
herve wrote:
Hi,
I have got a problem with the bpel designer.
I created a default synchronous bpel process.
I just added an assign to set the output result with a sample data string like "sample". I deployed on apache ode.
In the asign property, i tried $output.payload/tns:result and /tns:result
in both cases when i tested, i have such errors:<faultstring>{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
- <soapenv:Body>
- <soapenv:Fault xmlns:soapenv="http://docs.oasis-open.org/wsbpel/2.0/process/executable";>
<faultcode>soapenv:selectionFailure</faultcode>
No results for expression: {OXPath10Expression $output.payload/tns:result}</faultstring>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
If anyone has a solution, the good query to put, please tell me.
The copy part of the bpel file:queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[$output.payload/tns:result]]></bpws:query>
<bpws:assign name="Assign" validate="yes">
<bpws:copy>
<bpws:from>
<bpws:literal>sample</bpws:literal>
</bpws:from>
<bpws:to part="payload" variable="output">
<bpws:query
</bpws:to> </bpws:copy> </bpws:assign>
I faced the same problem, you can try to rewrite the "to" as following.
<bpws:to part="payload" variable="output">queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[$output.payload/tns:result]]></bpws:query>
<bpws:query
</bpws:to>
<bpws:to part="payload" variable="output" query="/tns:result"/>