Get next item
Take the oldest available item (new, or deferred and due), optionally only one with every tag given, and mark it in progress; with wait_seconds it waits for an item to arrive. found is false when there is none.
Command in the Work queues toolkit · id ooa.workload/get_next · 4 inputs (1 required), 6 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Queue | String | Yes | Queue name. | |
| Tags | List | No | Only an item that has all these tags. | |
| Wait (seconds) | Number | No | 0 | When the queue has no item, keep looking for this many seconds (stopping the run ends the wait). |
| Central | Boolean | No | false | Use the One CommandCenter queue with this name instead of the workspace's own file (runs started from One CommandCenter only). |
Outputs
| Output | Type | What it is |
|---|---|---|
| found | Boolean | True when an item was taken. |
| item_id | String | Item id. |
| data | Dictionary | Item fields. |
| attempt | Number | Which attempt this is (1 = first). |
| reference | String | The item's reference (empty when it has none). |
| tags | List | The item's tags. |