Skip to content
Proud to collaborate with Microsoft for Startups

control.predicate.compare ​

Compare two values with one operator, emitting a boolean result

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-control
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
ajsonNo—Left-hand value to test. Required, but may be null for is_null/not_null checks.
opstringYes—Comparison operator: eq, ne, in, not_in, truthy, falsy, gt, gte, lt, lte, contains, not_contains, regex, is_null, or not_null.
bjsonNo—Right-hand comparison value for binary operators such as eq, gt, contains, or regex.

Output Schema ​

FieldTypeRequiredDefaultDescription
ajsonNo—Left-hand value echoed from input.
opstringNo—Comparison operator echoed from input.
bjsonNo—Right-hand value echoed from input.
resultbooleanNo—Boolean result of the comparison.
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.predicate.compare",
  "initial_data": {
    "op": "value"
  }
}