Skip to main content

Sous-Workflow

Executes another workflow as a sub-function. Allows reusing existing workflows and creating modular architectures (max 5 levels).

Parameters

ParameterTypeRequiredVariableDescription
functionIdtextYesNoIdentifier of the workflow to execute as a sub-process.
functionVersionnumberNoNoSpecific workflow version to use. Empty for the latest version.
inputMappingsarrayNoNoInput data mappings passed to the subflow. Each entry maps a subflow parameter to a value or variable.
inheritContextbooleanNoNoInherit the parent workflow context (variables, configuration). (Default: true)
outputVariabletextNoNoOutput variable name containing the subflow result.

Output

Output variable : subflowResult

{
"result": "..."
}

Example

Call a validation sub-workflow.

Input :

{"functionId": "wf-validation-123"}

Output :

{"result": {"valid": true, "score": 95}}

Common errors

ProblemSolution
Maximum depth reachedSub-workflows are limited to 5 nesting levels.
Tip

{{subflowResult.result}} contains the sub-workflow output. Default timeout is 60 seconds.