Hi,
What BPEL variable type should I use for a sequence of simple types?
I have a situation where I'd like to save into variable a result of
XPath $Request.body/xsd1:SomeElement/xsd1:ManyChildren/@Code which is a
sequence of several strings.
When I specify a variable like this:
<bpel:variable name="Codes" type="xs:string"/>
I've got a selection failure:
2010-05-15 22:53:03,465 [pool-5-thread-44] DEBUG
org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime -
Expression {OXPath10Expression
$Request.body/xsd1:SomeElement/xsd1:ManyChildren/@Code} generated result
net.sf.saxon.dom.domnodel...@1f81137 - type=net.sf.saxon.dom.DOMNodeList
2010-05-15 22:53:03,465 [pool-5-thread-44] DEBUG
org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime -
Returned node list of size 2
2010-05-15 22:53:03,465 [pool-5-thread-44] DEBUG
org.apache.ode.bpel.runtime.ASSIGN - {OXPath10Expression
$Request.body/xsd1:SomeElement/xsd1:ManyChildren/@Code}: R-Value
expression "{OXPath10Expression
$Request.body/xsd1:SomeElement/xsd1:ManyChildren/@Code}" returned
multiple nodes.
2010-05-15 22:53:03,465 [pool-5-thread-44] INFO
org.apache.ode.bpel.runtime.ASSIGN - Assignment Fault:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailu
re,lineNo=1115,faultExplanation=R-Value expression "{OXPath10Expression
$Request.body/xsd1:SomeElement/xsd1:ManyChildren/@Code}" returned
multiple nodes.
2010-05-15 22:53:03,465 [pool-5-thread-44] DEBUG
org.apache.ode.bpel.runtime.SCOPE - ({OScope
'scope-implicit-scope-line-856'
id=183},TerminationChannel#28,ParentScopeChannel#30): has a fault
handler for
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailu
re: {OCatch faultName=null, faultVariable=null}
--
Regards,
Mateusz Nowakowski