control.time.now ​
Emit the current UTC time (iso8601/date/epoch) as a value for downstream steps
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-control |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
format | string | No | — | — |
offset_seconds | json | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
format | string | No | — | — |
offset_seconds | json | No | — | — |
result | json | No | — | — |
iso8601 | string | No | — | — |
date | string | No | — | — |
epoch_seconds | json | No | — | — |
iso_week | string | No | — | — |
iso_week_start_date | string | No | — | — |
iso_week_end_date | string | No | — | — |
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.time.now",
"initial_data": {
"format": "value",
"offset_seconds": "value"
}
}