[
https://issues.apache.org/jira/browse/NIFI-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14933785#comment-14933785
]
Mark Payne commented on NIFI-1003:
----------------------------------
Rick,
I think the approach that would make more sense here, rather than setting some
sort of state on the context would be to set the property on the Relationship
itself. For instance:
{code}
final Relationship SOME_RELATIONSHIP = new Relationship.Builder()
.name("Some Relationship")
.description("Some Description")
.autoTerminateDefault(true)
.build();
{code}
> Ability to auto-terminate relationship connections for a processor
> ------------------------------------------------------------------
>
> Key: NIFI-1003
> URL: https://issues.apache.org/jira/browse/NIFI-1003
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Core Framework
> Affects Versions: 0.3.0
> Environment: New processor with many dynamically-generated
> relationships
> Reporter: Rick Braddy
> Priority: Minor
>
> Need a way to auto-terminate relationships without user intervention; that
> is, change the default behavior of a processor to automatically
> self-terminate connections for relationships when they are created.
> Ideally, this would be possible to set at processor init() time, so all
> relationships on the processor will be auto-terminated by default. Since this
> primarily applies to relationships added dynamically, it could also be called
> via the ProcessContext object during onTrigger().
> context.autoTerminateConnections( boolean selfAutoTerminate);
> where calling autoTerminateConnections( true ) would cause future
> relationships to be auto-terminated by default (instead of the default, which
> is to require manually setting auto-termination).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)