title: setVariableData to assign a Invoke Input Variable Collection from java embedding
body: <p>I am using the below line in JAVA Embedding to assign value to a BPEL Invoke DB adapter input variable.</p>
  
  <pre><code>setVariableData("S2C_insert_InputVariable","TmpInvStoc3Collection","/ns8:TmpInvStoc3Collection/ns8:TmpInvStoc3/ns8:batchid","12345"); 
  </code></pre>
  
  <p>Now i want to put this statement in a while loop within java and want to repeat this for n iterations.  I want to place a loop variable in the collection but I dont know how to do this.</p>
  
  <p>I am looking for something like below.</p>
  
  <pre><code>setVariableData("S2C_insert_InputVariable","TmpInvStoc3Collection","/ns8:TmpInvStoc3Collection/ns8:TmpInvStoc3[$loop_variable]/ns8:batchid","12345");
  </code></pre>
  
  <p>Please let me know how to achieve this</p>
  
  <p>Regards
  Murali</p>