약 200 개의 개체가 포함 된 json 개체 목록이 있습니다. 나는 그 목록을 각각 최대 20 개의 개체가 들어있는 작은 목록으로 나누고 싶다. 각 하위 목록을 HTTP 기반 끝점에 POST하고 싶습니다.Mule - 큰 JSON 목록을 여러 개의 작은 JSON 목록으로 분할합니다.
<flow name="send-to-next-step" doc:name="send-to-vm-flow">
<vm:inbound-endpoint exchange-pattern="one-way"
path="send-to-next-step-vm" doc:name="VM" />
<!-- received the JSON List payload with 200 objects-->
<!-- TODO do processing here to split the list into sub-lists and call sub-flow for each sub-list
<flow-ref name="send-to-aggregator-sf" doc:name="Flow Reference" />
</flow>
한 가지 가능한 방법은 I리스트상에서 각 오브젝트 (20)의 반복 처리가 반복 후, 서브 플로우 호출 자바 성분 물품이다. 이 작업을 수행하는 더 좋은 방법이 있습니까?