footprintjs - v11.2.0
    Preparing search index...

    Function getSubtreeSnapshot

    • Navigate the execution snapshot tree by a slash-separated subflow path.

      Implementation note: footprintjs's SubflowExecutor stores nested subflow results with composite slash-separated keys (e.g. "sf-outer/sf-inner") in the flat subflowResults map. This function uses those keys for lookup.

      Parameters

      • snapshot: RuntimeSnapshot

        — the full RuntimeSnapshot from executor.getSnapshot()

      • path: string

        — slash-separated subflow IDs, e.g. "sf-payment" or "sf-payment/sf-validation"

      • OptionalallNarrativeEntries: CombinedNarrativeEntry[]

        — optional full narrative entries from executor.getNarrativeEntries(), used to extract scoped narrative for the subtree

      Returns SubtreeSnapshot | undefined

      the matching SubtreeSnapshot, or undefined if the path is not found