title: How to use CamelSplitIndex of outer split in inner split in Apache camel
body: <p>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.</p>
  
  <pre><code>&lt;split&gt;
      &lt;jsonpath&gt;$.Request.Fruits&lt;/jsonpath&gt;
      &lt;split&gt;
          &lt;jsonpath&gt;$.request.Fruits[index].item&lt;/jsonpath&gt;
  
          &lt;to someURI&gt;
      &lt;/split&gt;
  &lt;/split&gt; 
  </code></pre>
  
  <p>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?</p>