title: Stopping nifi processor without wait/notify processor and curl commands
body: <p>I want to terminate <code>invokhttp</code> processor as soon as it fails, for that I use <code>ExecuteStreamCommand</code> processor I have made bat  file  with code like this:</p>
  
  <pre><code>curl  http://localhost:8080/nifi-api/controller/process-groups/root/processors/f511a6a1-015d-1000-970e-969eac1e6fc5'-X PUT -H 'Accept: application/json'-d @stop.json -vv
  </code></pre>
  
  <p>and I  have related json file with code like this:</p>
  
  <pre><code>{
    "status": {
      "runStatus": "STOPPED"
    },
    "component": {
      "state": "STOPPED",
      "id": "f511a6a1-015d-1000-970e-969eac1e6fc5"
    },
    "id": "f511a6a1-015d-1000-970e-969eac1e6fc5",
    "revision": {
      "version": 30,
      "clientId": "0343f0b9-015e-1000-7cd8-570f8953ec11"
    }
  }
  </code></pre>
  
  <p>I use my <code>jso</code> file as an argument for command inside <code>ExecuteStreamCommand</code> processor bat  it throws an exception  like this:</p>
  
  <ol>
  <li>What should I  change?</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/IipJP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IipJP.png" alt="enter image description here"></a></p>