Skip to content
Proud to collaborate with Microsoft for Startups

control.value.cast ​

Coerce a value to a declared type (str/int/float/bool/json/list)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-control
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
valuejsonYes——
tostringYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
tostringNo——
valuejsonNo——
okbooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "control.value.cast",
  "initial_data": {
    "value": "value",
    "to": "value"
  }
}