Skip to main content

Syntax

executeFlow(config)

Description

Executes a target Flow starting from a specified Entrypoint Node. The behavior is controlled by config.flowNode.isGoto:
  • false – the target Flow runs temporarily, then returns to the current Flow.
  • true – the target Flow runs permanently and doesn’t return to the current Flow. For this behavior, you must call resetNextNodes() before calling executeFlow().
Only Nodes marked as Entrypoint in the target Flow can be used. Parameters:
  • config: IExecuteFlowNodeConfig — the IExecuteFlowNodeConfig configuration object that specifies the configuration for the Flow execution.
Returns: Promise<void>

Example

Last modified on April 21, 2026