Skip to content

One scan, one action

The physical worldScanDashboardautoSelectSingleclaim-show-detailrequireActingIdentity

When a step offers exactly one choice, the scan runs it directly: the item that just arrived is claimed and its form is on screen.

The situation

At a busy bench the only sensible thing to do with an arriving item is start work on it. A screen with one button is a wasted tap, repeated hundreds of times a shift.

The recipe

Give the present step a single confirm-less choice and set autoSelectSingle: true.

rule 11:0 Item arrives
{
"query": { "roles": ["assembly"], "status": "pending", "availability": "available" },
"verb": "present",
"autoSelectSingle": true,
"choices": [
{ "label": "Start", "verb": "claim-show-detail", "requireActingIdentity": true,
"params": { "durationMinutes": 30 } }
]
}

The associate scans the item. It is claimed for 30 minutes, attributed to them, and the station navigates to its detail page: the same form every operator uses to resolve, reject or conclude the item.

The guarantee

An unsatisfied identity requirement never auto-fires as the wrong actor. With no badge primed, the scan stops at the badge screen, and once a badge primes the pending action completes on its own. The claim itself is atomic: of two benches scanning the same item, one wins and the other gets conflict. See Scan codes.