From 8a8ae5508f7146e89cd2386e0ef334948e447c27 Mon Sep 17 00:00:00 2001 From: Richard Miskin Date: Sat, 19 Dec 2015 07:07:54 +0000 Subject: [PATCH] NIFI-1313 Allow deletion of ProcessGroups that contain nested ProcessGroups Signed-off-by: Matt Gilman --- .../java/org/apache/nifi/groups/StandardProcessGroup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardProcessGroup.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardProcessGroup.java index 93acfa4037..88fa43fd00 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardProcessGroup.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardProcessGroup.java @@ -1902,7 +1902,9 @@ public final class StandardProcessGroup implements ProcessGroup { } for (final ProcessGroup childGroup : processGroups.values()) { - childGroup.verifyCanDelete(); + // For nested child groups we can ignore the input/output port + // connections as they will be being deleted anyway. + childGroup.verifyCanDelete(true); } if (!ignoreConnections) {