Kelly,
Without sample xml data, it's hard to fully understand your requirement.
I'm assuming you mean that you want to sort the target based on the
'sequenceNum' element on the source. If that's the case, you should be
able to use 'sequenceNum' as the predicate (index) for the target node
in your ForEach mapping, and things should automatically be sorted.
However, if sequenceNum is not contiguous in the source, you will have
empty nodes on the target for sequenceNumbers that haven't arrived yet.
For instance:
<ns1:myData sequenceNumber="1"/>
<ns1:myData/>
<ns1:myData sequenceNumber="3"/>
<ns1:myData/>
<ns1:myData/>
<ns1:myData sequenceNumber="6"/>
For a non-trivial sort, I would stick with what Kiran suggested -
delegate this to XSL, Java EE or POJO SE since you don't want to clutter
your BPEL business logic with too much technical code anyway.
HTH,
Rupesh.
KellyT wrote:
> I have a complexType containing a "sequenceNum" element. How would I go about
> using that element to sort nodes processed by the forEach activity in BPEL?
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@...
For additional commands, e-mail:
dev-help@...