mirror of https://github.com/apache/nifi.git
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:
parent
a458a139b3
commit
596a329dc7
|
@ -2050,7 +2050,7 @@ public final class DtoFactory {
|
||||||
|
|
||||||
final Map<String, String> variables = group.getVariableRegistry().getVariableMap().entrySet().stream()
|
final Map<String, String> variables = group.getVariableRegistry().getVariableMap().entrySet().stream()
|
||||||
.collect(Collectors.toMap(entry -> entry.getKey().getName(), entry -> entry.getValue()));
|
.collect(Collectors.toMap(entry -> entry.getKey().getName(), entry -> entry.getValue()));
|
||||||
group.setVariables(variables);
|
dto.setVariables(variables);
|
||||||
|
|
||||||
final ProcessGroup parentGroup = group.getParent();
|
final ProcessGroup parentGroup = group.getParent();
|
||||||
if (parentGroup != null) {
|
if (parentGroup != null) {
|
||||||
|
|
Loading…
Reference in New Issue