Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

NiFi: programmatically stop the Custom Processor

avatar
New Contributor

Hi,

I'm programming of custom NiFi Processor which extends

org.apache.nifi.processor.AbstractProcessor 

I don't want the processor to repeat the same iteration, so how to programmatically stop the processor after transfer the FlowFile to the appropriate destination processor?

I read about

System.exit();

But it hangs up my NiFi.. How to do it correctly?

Thanks!

1 ACCEPTED SOLUTION

avatar
New Contributor

Okay, here is answer to my question:

https://stackoverflow.com/questions/44153120/how-to-turn-off-nifi-processor-schedule

Basically I just used CRON scheduling strategy and setted expression to run only once in certain day and time.

View solution in original post

1 REPLY 1

avatar
New Contributor

Okay, here is answer to my question:

https://stackoverflow.com/questions/44153120/how-to-turn-off-nifi-processor-schedule

Basically I just used CRON scheduling strategy and setted expression to run only once in certain day and time.