NIFI-4653: Fixed bug where Process Group DTO was not containing variables when created with the #createConciseProcessGroup method. This closes #2314.

This commit is contained in:
Mark Payne 2017-12-04 09:17:48 -05:00
parent a458a139b3
commit 596a329dc7
1 changed files with 1 additions and 1 deletions

View File

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