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

ASF subversion and git services commented on NIFI-15011:
--------------------------------------------------------

Commit 537ce9472f07e367e166f299a1c93bd27adb6c7c in nifi's branch 
refs/heads/main from Pierre Villard
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=537ce9472f ]

NIFI-15011 - FlowDifferenceFilters - handle splitRelationship() (#10341)



> FlowDifferenceFilters - handle splitRelationship() 
> ---------------------------------------------------
>
>                 Key: NIFI-15011
>                 URL: https://issues.apache.org/jira/browse/NIFI-15011
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Consider something like:
>  
> {code:java}
>      @Override
>      public void migrateRelationships(final RelationshipConfiguration config) 
> {
>          if (!config.hasRelationship(B)) {
>              config.splitRelationship(A.getName(), A.getName(), B.getName());
>          }
>          super.migrateRelationships(config);
>      }{code}
> Then I'd see a local change such as:
> Selected Relationships Changed - From '[A]' to '[A, B]'
>  
> If the relation B didn't exist at all in the flow definition, and if the 
> source processor does not support dynamic relationships, then this change 
> should not show as a local change.
> Similarly, if the processor does not support dynamic relationships and if we 
> have:
> {code:java}
>      @Override
>      public void migrateRelationships(final RelationshipConfiguration config) 
> {
>        if (!config.hasRelationship(A)) {
>            config.splitRelationship(OLD.getName(), A.getName(), B.getName());
>          }
>          super.migrateRelationships(config);
>      }{code}
> (we remove an OLD relationship that we split into two new ones)
> We should not show a local change like:
> Selected Relationships Changed - From '[OLD]' to '[A, B]'



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to