Loading...
Loading...
Orchestrates durable multi-step workflow pipelines on the iii engine. Use when building order fulfillment, data pipelines, task orchestration, or any sequential process requiring retries, backoff, step tracking, scheduled cleanup, or dead letter queue (DLQ) handling.
npx skill4agent add iii-hq/skills iii-workflow-orchestrationiii-config.yamlHTTP (create order)
→ Enqueue(order-validate) → validate
→ Enqueue(order-payment) → charge-payment
→ Enqueue(order-ship) → ship
→ publish(order.fulfilled)
Cron (hourly) → cleanup-stale
Queue configs (iii-config.yaml):
order-validate: max_retries: 2
order-payment: max_retries: 5, type: fifo, concurrency: 2
order-ship: max_retries: 3| Primitive | Purpose |
|---|---|
| Initialize the worker and connect to iii |
| Define each pipeline step |
| Durable step chaining via named queues |
| Track step progress |
| Fire-and-forget stream events and publish |
| Scheduled maintenance |
| Entry point |
registerWorker(url, { workerName })trigger({ function_id, payload, action: TriggerAction.Enqueue({ queue }) })trigger({ function_id: 'state::update', payload: { scope, key, ops } })iii-config.yamlconst logger = new Logger()registerFunctiontrigger({ function_id: 'publish', payload, action: TriggerAction.Void() })iii-config.yamlmessageReceiptIdtrackStep0 0 * * * * *queue_configsregisterFunction{ path, id }iii-http-invoked-functionsiii-workflow-orchestrationiii-workflow-orchestration