Github user markap14 commented on the pull request:
https://github.com/apache/incubator-nifi/pull/51#issuecomment-110906821
@joey generally @OnStopped is the best place to do something like that. If
you want to call onTrigger() multiple times without the @OnScheduled,
@OnUnscheduled being called, you can pass in flags to the run() method to
specify this. Or alternatively, if it makes sense in your unit test, you can
use .run(int) to run some specified number of times.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---