Skip to main content

Run

Provides the capability to run execute external commands

Properties

NameTypeRequiredDescription
run.workflowworkflownoThe definition of the workflow to run.
Required if container, script and shell have not been set.
awaitbooleannoDetermines whether or not the process to run should be awaited for.
When set to false, the task cannot wait for the process to complete and thus cannot output the process’s result.
Defaults to true.

Workflow

Enables the invocation and execution of child workflows from a parent workflow, facilitating modularization, reusability, and abstraction of complex logic or business processes by encapsulating them into standalone workflow units.

Properties

NameTypeRequiredDescription
namestringyesThe name of the workflow to run
namespacestringyesThis is not used and only exists to maintain compatability with the Serverless Workflow schema
versionstringyesThis is not used and only exists to maintain compatability with the Serverless Workflow schema
inputanynoThe data, if any, to pass as input to the workflow to execute. The value should be validated against the target workflow's input schema, if specified

Example

document:
dsl: 1.0.0
namespace: zigflow
name: example
version: 0.0.1
timeout:
after:
minutes: 1
do:
- parentWorkflow:
do:
- wait:
wait:
seconds: 5
- callChildWorkflow1:
run:
workflow:
name: child-workflow1
namespace: default
version: 0.0.0
- wait:
wait:
seconds: 5
- callChildWorkflow2:
run:
workflow:
name: child-workflow2
namespace: default
version: 0.0.0
- child-workflow1:
do:
- wait:
wait:
seconds: 10
- child-workflow2:
do:
- wait:
wait:
seconds: 3