[
https://issues.apache.org/jira/browse/NIFI-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14731304#comment-14731304
]
Mark Payne commented on NIFI-810:
---------------------------------
[~aldrin]: thoughts on using an annotation like "@InputRequirement" that takes
an enumeration instead of @IgnoresInput and @RequestInput? Then you could use
one of:
@InputRequirement(INPUT_REQUIRED)
@InputRequirement(INPUT_OPTIONAL)
@InputRequirement(INPUT_FORBIDDEN)
If the annotation is not present, it would be the same as using INPUT_OPTIONAL,
which is how this behaves now.
Not sure which way is cleaner: to have explicit annotations for each or to have
an annotation that accepts input?
> Create Annotation that indicates that a Processor cannot be scheduled to run
> without an incoming connection
> -----------------------------------------------------------------------------------------------------------
>
> Key: NIFI-810
> URL: https://issues.apache.org/jira/browse/NIFI-810
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Mark Payne
>
> Currently, if a Processor has no incoming connections but is started, it will
> continually without ever accomplishing anything. We should have an
> annotation, perhaps @RequiresInput, that indicates that the Processor should
> not be scheduled to run unless it has an incoming connection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)