I have a document type but we found in 6.5 that in many cases if you didn’t set make arrays = true and define the arrays that it wouldn’t loop properly.
I just used the same logic in 8.1 when I had issues.
I was able to figure out how to get around the issue.
My business scenario is I have to check the invoice header to see if there are any tax, shipping and handling charges. If they are there I need to find out how much and distribute them across all the lines.
my flow was kind of like this
Loop over Invoice
[INDENT]Map ( get all headerCharges)
Branch (evaluate labels = true)
[INDENT]headerCharges > 0 SEQ:
[INDENT]Loop over InvoiceLine
[INDENT]Map (count invoice lines and gather charges)
[/INDENT]…
[/INDENT]$default SEQ: (no headerCharges)
[INDENT]no work to do
[/INDENT][/INDENT][/INDENT]
If I move the loop above the branch it works, it is only when it is inside the branch that it doesnt work.
Seems like a scoping issue to me.
I’ll keep digging and if I find anything more I’ll post back in case someone else has the same issues.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB