[ 
https://issues.apache.org/jira/browse/NIFI-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16093265#comment-16093265
 ] 

Joseph Witt commented on NIFI-4200:
-----------------------------------

* start a workflow based on another workflow
For this we have wait/notify now.  I could see this being useful anyway but 
just pointing that pattern out.

* start a processor not accepting incoming relationship based on a flow file
Why would that processor not be running already?  Can you describe this case 
further?

* restart a processor to "refresh" its configuration when the processor relies 
on configuration files that could be changed
This is a bug in those processors and they should be fixed.  Processors should 
not assume that the things they depend on are static and rely on application 
lifecycle to refresh/stay up to date.  They should be coded for continuous 
operation.

* have a "start once" behavior
This is something we should do at a framework level for processors.  It would 
be fine to make it easy to invoke that but we still need to make the thing to 
invoke.  Having an external thing call it then stop it real fast likely wont be 
enough as the idea of a single run could differ between processors.

> Consider a ControlNiFi processor
> --------------------------------
>
>                 Key: NIFI-4200
>                 URL: https://issues.apache.org/jira/browse/NIFI-4200
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Extensions
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>
> We frequently see on the mailing list the need to start/stop a processor 
> based on incoming flow files. At the moment, that's something that can be 
> scripted or that can be done using multiple InvokeHttp processors but it 
> requires a bit of work.
> Even though it is not really in the "NiFi way of thinking", it would be 
> interesting to have a processor with the following parameters:
> - NiFi REST API URL
> - Username
> - Password
> - Processor UUID (with expression language)
> - Action to perform (START, STOP, START/STOP, STOP/START)
> - Sleep duration (between the START and STOP calls when action is START/STOP, 
> or STOP/START)
> That would be helpful in use cases like:
> - start a workflow based on another workflow
> - start a processor not accepting incoming relationship based on a flow file 
> - restart a processor to "refresh" its configuration when the processor 
> relies on configuration files that could be changed
> - have a "start once" behavior



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to