Groovy transformer was like ignored

邮差的信 提交于 2019-12-14 04:08:17

问题


Good day, collegues. In my project i met some problem. In one of flows i have made two http_requests and then have parsed those responses with groovy transformer.

First groovy script:

Second groovy script:

The first groovy script works fine. But the second script don't do anything. Like it was ignored.

Both http_responses's structures are similar.

Why the second groovy script can have been ignored?


回答1:


Omg!( I am very sorry, this was my very stupid mistake. The reason is - 'break' must be in IF scope... In the first http_response sought value is the first item in collection, that's why it works.

p.s. shame...



来源:https://stackoverflow.com/questions/38616714/groovy-transformer-was-like-ignored

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