Skip to content

@oona/vlo / index / fanOutRunsResultsOf

Function: fanOutRunsResultsOf() ​

fanOutRunsResultsOf<O>(state, target): ChildResult<O>[]

Defined in: sdk/ts/sdk/src/core/helpers/sequence-access.ts:55

The outcomes of an earlier fanOutRuns on target, in item order: one ChildResult per child, whose output is null unless the child completed. An empty selection stored []. O is the child workflow's completion output type.

Type Parameters ​

O ​

O = Json

Parameters ​

state ​

SeqState

target ​

string | { name: string; }

Returns ​

ChildResult<O>[]

Example ​

ts
step(summarise, (state) => ({
  read: fanOutRunsResultsOf<{ ok: boolean }>(state, readSource).filter((r) => r.output?.ok).length,
}))