From 9874d35b6befddc341833e2c65af301d99090dd7 Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Tue, 8 Mar 2016 10:53:23 -0500 Subject: [PATCH] NIFI-1600: Ensure that if we move a RemoteProcessGroup, it also updates the Parent Process Group of the ports --- .../org/apache/nifi/remote/StandardRemoteProcessGroup.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/remote/StandardRemoteProcessGroup.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/remote/StandardRemoteProcessGroup.java index bd934461e9..55410a3fc0 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/remote/StandardRemoteProcessGroup.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/remote/StandardRemoteProcessGroup.java @@ -211,6 +211,12 @@ public class StandardRemoteProcessGroup implements RemoteProcessGroup { @Override public void setProcessGroup(final ProcessGroup group) { this.processGroup.set(group); + for (final RemoteGroupPort port : getInputPorts()) { + port.setProcessGroup(group); + } + for (final RemoteGroupPort port : getOutputPorts()) { + port.setProcessGroup(group); + } } public void setTargetId(final String targetId) {