I have to call a service for each element of an array B. but Array A is inside Array A. So I am trying to use split inside split as below in camel_Context.xml. Once the all inner split array value are executed, I need to aggregate them as well.
<split>
<jsonpath>$.Request.Fruits</jsonpath>
<split>
<jsonpath>$.request.Fruits[index].item</jsonpath>
<to someURI>
</split>
</split>
The index I have used in the inner split should say the current iteration of outer split. CamelSplitIndex will give you the iteration number of inner split. I am not sure how to use any explicit counter in the outer split. Is there any other way to achieve my goal please?