Skip to content
Proud to collaborate with Microsoft for Startups

control.collection.filter ​

Keep the list elements matching one comparison predicate

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-control
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
itemsjsonYes——
opstringYes——
valuejsonNo——
fieldstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
itemsjsonNo——
opstringNo——
valuejsonNo——
fieldstringNo——
resultlistNo——
countintegerNo——
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.collection.filter",
  "initial_data": {
    "items": "value",
    "op": "value"
  }
}