mirror of https://github.com/apache/nifi.git
Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/incubator-nifi into develop
This commit is contained in:
commit
7f9dff52b0
|
@ -194,13 +194,21 @@ public final class SnippetUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addControllerServicesToSnippet(final FlowSnippetDTO snippetDto) {
|
private void addControllerServicesToSnippet(final FlowSnippetDTO snippetDto) {
|
||||||
for ( final ProcessorDTO processorDto : snippetDto.getProcessors() ) {
|
final Set<ProcessorDTO> processors = snippetDto.getProcessors();
|
||||||
addControllerServicesToSnippet(snippetDto, processorDto);
|
if ( processors != null ) {
|
||||||
|
for ( final ProcessorDTO processorDto : processors ) {
|
||||||
|
addControllerServicesToSnippet(snippetDto, processorDto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( final ProcessGroupDTO processGroupDto : snippetDto.getProcessGroups() ) {
|
final Set<ProcessGroupDTO> childGroups = snippetDto.getProcessGroups();
|
||||||
final FlowSnippetDTO childGroupDto = processGroupDto.getContents();
|
if ( childGroups != null ) {
|
||||||
addControllerServicesToSnippet(childGroupDto);
|
for ( final ProcessGroupDTO processGroupDto : childGroups ) {
|
||||||
|
final FlowSnippetDTO childGroupDto = processGroupDto.getContents();
|
||||||
|
if ( childGroupDto != null ) {
|
||||||
|
addControllerServicesToSnippet(childGroupDto);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue