title: Jmeter trigger http request after another http request is succesful. Concurrent requests with condition
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>I have 2 thread groups 
  Thread group1: 
      csv data set configure
   {
    loop through the csv file(CSVFile.csv) that contain fileNames of json data to post
    eg: CSVFile.csv
      file1.json
      file2.json
      .....so on
   }
   http request (That posts the data to rest api) (lets call it POST request)
   {
    extracts data from each json file and put it in http body and post to rest api
    eg:
     extract data from file1.json and post
   }
    jsr223 post processor
    {
     extracting data from above http responce and saving it to a file
    }
   
  Thread group2:
   csv data configure
   {
    reads data from csv file
   }
   http request (Perform GET operation on rest api) (lets call it GET request)
   {
    eg:
    GET ip:port/searchParameter=value
   }
   </code></pre>
  </div>
  </div>
  </p>
  
  <p>Now the problem is how to trigger thread group2 every time a iteration of http request of thread group1 is complete and go for iteration 2 without waiting for thread group2 to complete.</p>
  
  <pre><code>eg:
  POST request -&gt; file1.json  completion should trigger GET request
  As the GET request continues to execute
  POST request -&gt; file2.json should be excuted concurrently 
  
  CAN I DO THIS?
  </code></pre>