Skip to content
Proud to collaborate with Microsoft for Startups

composition.save ​

Validate, compile and persist a reusable virtual workflow composition

Persist a new version of a virtual workflow composition.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-composition
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
namestringYes—Human lineage name; (org, name, version) is unique
definitiondictYes—Serializer-dialect VirtualWorkflow {name, layers:[{steps:[...]}]}
descriptionstringNo——
created_by_uuiduuidNo——
tagslistNo——
source_session_uuiduuidNo—REPLICATE provenance — the DGI session this reproduces

Output Schema ​

FieldTypeRequiredDefaultDescription
composition_uuiduuidYes——
lineage_uuiduuidNo—Stable lineage handle, carried across every version (ticket 142b6295)
superseded_versionslistNo—Prior active lineage versions archived by this write
workflow_typestringYes——
versionintegerYes——
statusstringYes——
validation_passedbooleanYes——
validation_errorslistNo——
validation_warningslistNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completeValidate + compile + persist composition
completedNoYesYes—Saved
failedNoYesNo—Save failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "composition.save",
  "initial_data": {
    "organization_uuid": "value",
    "name": "value",
    "definition": "value"
  }
}