ObjectStackObjectStack

Flow

Flow protocol schemas

Flow Node Types

Source: packages/spec/src/automation/flow.zod.ts

TypeScript Usage

import { FlowNode, FlowNodeAction, FlowVariable } from '@objectstack/spec/automation';
import type { FlowNode, FlowNodeAction, FlowVariable } from '@objectstack/spec/automation';

// Validate data
const result = FlowNode.parse(data);

FlowNode

Properties

PropertyTypeRequiredDescription
idstringNode unique ID
typeEnum<'start' | 'end' | 'decision' | 'assignment' | 'loop' | 'create_record' | 'update_record' | 'delete_record' | 'get_record' | 'http_request' | 'script' | 'screen' | 'wait' | 'subflow' | 'connector_action' | 'parallel_gateway' | 'join_gateway' | 'boundary_event'>Action type
labelstringNode label
configRecord<string, any>optionalNode configuration
connectorConfigObjectoptional
positionObjectoptional
timeoutMsintegeroptionalMaximum execution time for this node in milliseconds
inputSchemaRecord<string, Object>optionalInput parameter schema for this node
outputSchemaRecord<string, Object>optionalOutput schema declaration for this node
waitEventConfigObjectoptionalConfiguration for wait node event resumption
boundaryConfigObjectoptionalConfiguration for boundary events attached to host nodes

FlowNodeAction

Allowed Values

  • start
  • end
  • decision
  • assignment
  • loop
  • create_record
  • update_record
  • delete_record
  • get_record
  • http_request
  • script
  • screen
  • wait
  • subflow
  • connector_action
  • parallel_gateway
  • join_gateway
  • boundary_event

FlowVariable

Properties

PropertyTypeRequiredDescription
namestringVariable name
typestringData type (text, number, boolean, object, list)
isInputbooleanIs input parameter
isOutputbooleanIs output parameter

On this page