webMethods loop over Document list

☆樱花仙子☆ 提交于 2019-12-04 14:59:13

Let say I want to loop over list of Strings I have simple flow service:

In first step (MAP) I created the list...

As second step, there are properties for LOOP important:

Input array: /list

But here is the trick, notice the icon in MAP step - there is String list, but in pipeline for debugLog step, there is list variable as String - it is the current String variable from list (I agree, very bad practice of SAG).

With Document list it will be very the same...

I'd recommend to the the remap as first step in loop, for example:

Warning:

LOOP is a very very slow construct in flow, so one shouldn't be using this at all. Alternative is to use Java for looping (yes, ugly again, but LOOP performance will kick you to a butt, sooner or later).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!