How to assign a list of elements
KHeinFeb 9 2011 — edited Feb 28 2020Hi everyone,
I am a newbie in BPEL and I am facing a problem with assigning a list of elements.
In my BPEL process, after invoking an adapter, it returns a list of elements which has similar structure as below.
<nodeList>
<node>
<name> ..</name>
<id> ... </id>
<desc> ... </desc>
<msgList>
<msg>....</msg>
</msgList>
</node>
</nodeList>
<msgList> is optional. I need to assign that list into output variable which has the same structure. I have tried Copy Operation but I got error at run time saying the list is empty. I have also tried Copy List Operation, but it failed as "The element returned from the to-list spec of the copyList operation did not have an element parent."
I would like to know how I could copy it into output variable. Thanks.
Regards,
K Hein