配列を反復処理し、配列から取得した値を使用して、http インバウンド エンドポイント内に配置したいと考えています。この配列を繰り返し処理し、配列から値を取得して、http インバウンド エンドポイント内の変数として配置するにはどうすればよいでしょうか?
私が試したコードは次のとおりです。
<flow name="foreachFlow1" doc:name="foreachFlow1">
<poll frequency="2000">
<foreach collection="#[groovy:['localhost:8082', 'localhost:8083']]"
doc:name="For Each">
<http:outbound-endpoint exchange-pattern="request-response"
address="http://#[payload]" method="GET" doc:name="HTTP" />
</foreach>
</poll>
</flow>
エラーが発生します
Invalid content was found starting with element 'poll'