Hi All, I have a question regarding the behavior I'm noticing in InvokeScriptedProcessor. I was testing a functionality and noticed that initialize method in InvokeScriptedProcessor is called twice during the life cycle of one full run. To reproduce this I kept simple print statement in the initialize method and saw the statement being printed twice.
1. First time when the processor is setup and my custom code is validated 2. Second time after one execution is completed and the processor is stopped. See my sample code attached. I see the below statements being printed: 2019-02-14 08:48:30,585 INFO [NiFi logging handler] org.apache.nifi.StdOut Inside initialize() method 2019-02-14 08:48:31,967 INFO [NiFi logging handler] org.apache.nifi.StdOut Reading Flowfile onTrigger 2019-02-14 08:48:33,959 INFO [NiFi logging handler] org.apache.nifi.StdOut Inside initialize() method Is this expected that initialize method is called when the processor is stopped? I was under the assumption that initialize method is only called during the processor setup. Please help. Thank you, Harsha Sent from Outlook<http://aka.ms/weboutlook>
InitializeTest.groovy
Description: InitializeTest.groovy
