This content has been marked as final. Show 3 replies
That is not my question.
My question is what is the way in BPEL 2.0 for looping the collection.
so instead of follwoing (which is BPEL 1.1 way), what could be BPEL 2.0 way for looping collection. ?
expression="count(bpws:getVariableData('InvokeGetOrdersFromCOM_OutputVariable','GetOrderDetailsFromCOMOutputCollection','/ns26:GetOrderDetailsFromCOMOutputCollection/ns26:GetOrderDetailsFromCOMOutput'))"/> ------------ this BPEL 1.1 way
Sorry, I did not understand your case correctly.
Then maybe you're talking about the "for-each" BPEL 2.0 activity which enable you to make that kind of loop.
The overall logic is the same.
You set the start counter to 1
You set the end counter to "count('your collection')"
And you name the counter in order to get the current element of the loop using the counter.
But be careful, if you set the start counter to 1 and your collection is empty then your loop will not end correctly.
<forEach parallel="yes" counterName="index" name="ForEach_FilteredSubs">
<bpelx:skipCondition>ora:countNodes('SubscriptionsList','FilteredSubscriptions') = 0</bpelx:skipCondition>
Edited by: mathieu.d on Feb 14, 2013 1:19 AM