control.predicate.combine ​
Combine a list of booleans with all/any/none into one result
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-control |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
clauses | json | Yes | — | List of truthy/falsy clause values to fold into one boolean decision. |
mode | string | No | — | Fold mode: all requires every clause, any requires at least one, none requires no truthy clauses. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
clauses | json | No | — | Clause list echoed from input. |
mode | string | No | — | Fold mode used for evaluation. |
result | boolean | No | — | Boolean result after folding clauses. |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "control.predicate.combine",
"initial_data": {
"clauses": "value"
}
}