mirror of https://github.com/apache/nifi.git
NIFI-1600: Ensure that if we move a RemoteProcessGroup, it also updates the Parent Process Group of the ports
This commit is contained in:
parent
998ac1c830
commit
9874d35b6b
|
@ -211,6 +211,12 @@ public class StandardRemoteProcessGroup implements RemoteProcessGroup {
|
||||||
@Override
|
@Override
|
||||||
public void setProcessGroup(final ProcessGroup group) {
|
public void setProcessGroup(final ProcessGroup group) {
|
||||||
this.processGroup.set(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) {
|
public void setTargetId(final String targetId) {
|
||||||
|
|
Loading…
Reference in New Issue