NIFI-1600: Ensure that if we move a RemoteProcessGroup, it also updates the Parent Process Group of the ports

This commit is contained in:
Mark Payne 2016-03-08 10:53:23 -05:00
parent 998ac1c830
commit 9874d35b6b
1 changed files with 6 additions and 0 deletions

View File

@ -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) {