private int getSplitDepth(final Map<String, Element> elementInstances,
                              final Map<Element, PipelineElementType> elementTypeMap,
                              final Map<String, Set<String>> linkSets,
                              final String parentElementId) {
        // Get the child elements of the supplied 'from' element id that we want
        // to work with.
        final List<Element> childElements = getChildElements(parentElementId, elementInstances, elementTypeMap,
                linkSets, null);

        // Loop over the child elements and link them to the parent.
        for (final Element childElement : childElements) {
            if (childElement instanceof final SplitFilter splitFilter) {
                return splitFilter.getSplitDepth();
            }
            final int childSplitDepth =
                    getSplitDepth(elementInstances, elementTypeMap, linkSets, childElement.getElementId());
            if (childSplitDepth != -1) {
                return childSplitDepth;
            }
        }

        return -1;
    }
Get the split depth for use in stepping.
stroom-pipeline/src/main/java/stroom/pipeline/factory/PipelineFactory.java