I want to stop my invokehttp processor as soon as it's response fails ,is it possible to make it by another inovokehttp processor? I have read this solution:
How to stop the single processor in nifi1.1.0 using rest api.
I have already tried to use put request in my another invokehttp processor(which is connected to previous one with failure connection ) by this link http://localhost:8080/nifi-api/processors/ea5db028-015d-1000-5ad5-80fd006dda92 but it doesn't work() will i need to generate flowfile with realated code:
{
"status": {
"runStatus": "STOPPED"
},
"component": {
"state": "STOPPED",
"id": "9204b68d-0159-1000-7d8f-720592b2a2dd"
},
"id": "9204b68d-0159-1000-7d8f-720592b2a2dd",
"revision": {
"version": 10,
"clientId": "ab010dd6-0159-1000-615b-f095502a7ceb"
}
}
or there is another way( actually i haven't understand how to use this code in flowfile)