Repository: nifi Updated Branches: refs/heads/master a458a139b -> 596a329dc
NIFI-4653: Fixed bug where Process Group DTO was not containing variables when created with the #createConciseProcessGroup method. This closes #2314. Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/596a329d Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/596a329d Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/596a329d Branch: refs/heads/master Commit: 596a329dc77aa9571fcdcc5ad4fba89db510b940 Parents: a458a13 Author: Mark Payne <[email protected]> Authored: Mon Dec 4 09:17:48 2017 -0500 Committer: Mark Payne <[email protected]> Committed: Mon Dec 4 09:31:54 2017 -0500 ---------------------------------------------------------------------- .../src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/596a329d/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java index b0f2296..58abdea 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java @@ -2050,7 +2050,7 @@ public final class DtoFactory { final Map<String, String> variables = group.getVariableRegistry().getVariableMap().entrySet().stream() .collect(Collectors.toMap(entry -> entry.getKey().getName(), entry -> entry.getValue())); - group.setVariables(variables); + dto.setVariables(variables); final ProcessGroup parentGroup = group.getParent(); if (parentGroup != null) {
