Hi Ben, You might want to have a look here: https://nifi.apache.org/docs/nifi-docs/html/developer-guide.html#component-lifecycle
Pierre 2017-08-11 9:06 GMT+02:00 尹文才 <batman...@gmail.com>: > Hi guys, I'm trying to execute some code in my processor when the processor > is asked to stop in the NIFI UI by the user, I checked the developer guide > and only find OnUnscheduled will be called when the processor is no long > scheduled to run. I've tested this OnUnscheduled, it will also be called > after timed out executing OnScheduled task. So is there a way to execute > some code only when the processor is stopping? > > Regards, > Ben >