Skip to content

Workflow operators

Public

The Workflow family contains 3 operators. Invoke other workflows and return values to a caller.

Calls another published workflow as a child run.

Version 1.0.0 · Semantics side_effect · Visibility advanced

FieldTypeRequiredDefaultDescription
revisionstringnoSpecific revision or ‘latest’.
workflow_idstringyes
PortTypeRequiredDescription
inputanyyesInput
PortTypeRequiredDescription
outputanynoOutput

Invokes another deployment as a child run with depth-limited recursion. Calls the engine directly (no HTTP self-loopback) and enforces customer scoping at both the SQL and handler layer.

Version 1.0.0 · Semantics side_effect · Visibility advanced

FieldTypeRequiredDefaultDescription
deployment_idstringyesUUID of the deployment to invoke.
inputsobjectnoJSON payload passed as the child run’s initial inputs. Defaults to the upstream step’s output if omitted.
max_recursion_depthintegerno5Maximum invocation chain depth before the engine refuses to spawn the child.
wait_for_completionbooleannofalseIf true, block until the child run reaches a terminal status (or hits the wait timeout).
PortTypeRequiredDescription
inputanynoInput
PortTypeRequiredDescription
outputobjectnoOutput

Terminates the current run early with an explicit value. The DAG scheduler detects the terminal marker on this step’s output and finalises the run as completed, skipping any remaining downstream steps.

Version 1.0.0 · Semantics side_effect · Idempotent · Visibility advanced

FieldTypeRequiredDefaultDescription
metadataobjectnoOptional metadata recorded alongside the return value (e.g. early-exit reason).
valueanynoFinal return value for the run. Defaults to the upstream step’s output if omitted.
PortTypeRequiredDescription
inputanynoInput
PortTypeRequiredDescription
outputobjectnoOutput

Every operator above is rendered from its JSON schema in /opt/glyph/schemas/operators/:

  • schemas/operators/workflow.call.json
  • schemas/operators/workflow.invoke.json
  • schemas/operators/workflow.return.json