Skip to main content

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​

InputTypeRequiredDefaultWhat it is
QueueStringYesQueue name.
TagsListNoOnly an item that has all these tags.
Wait (seconds)NumberNo0When the queue has no item, keep looking for this many seconds (stopping the run ends the wait).
CentralBooleanNofalseUse the One CommandCenter queue with this name instead of the workspace's own file (runs started from One CommandCenter only).

Outputs​

OutputTypeWhat it is
foundBooleanTrue when an item was taken.
item_idStringItem id.
dataDictionaryItem fields.
attemptNumberWhich attempt this is (1 = first).
referenceStringThe item's reference (empty when it has none).
tagsListThe item's tags.