Pick tasks
Ask Rologi Flow to pick stock from an automation system.
A pick task asks for stock from one automation system. Each line names an item and the quantity to pick.
Loading diagram…
The diagram shows the usual order. The order can differ, for example when a task is canceled before its first pick.
Create or update
Send PUT with the task identifier in the path. Rologi Flow creates the task if it does not exist, or updates it if it exists.
PUT https://rologi-flow.example.com/api/pick-tasks/1234
Authorization: Bearer <token>
Content-Type: application/json
{
"site": "1000",
"system": "AS1",
"name": "1012345678 - John Doe",
"type": "CUSTOMER_ORDER",
"priority": 1,
"traits": {
"orderId": "SO-2025-000123"
},
"lines": [
{
"id": "1",
"item": "digital-camera",
"quantity": {
"amount": 3,
"unit": "PIECE"
},
"expiryDateRange": {
"min": "2025-12-31",
"max": "2026-12-31"
},
"lotNumber": "XYZ24041508A"
}
]
}| Field | Meaning |
|---|---|
site, system | The site and the automation system from which the stock is picked. Required. |
lines | The lines of the task. Required. Each line has an id that is unique in the task, an item and a quantity. |
expiryDateRange | Optional range for the expiry date of the item. A boundary that you do not send accepts any date. |
lotNumber, batchNumber | Optional lot and batch of the item. |
name, type | Optional name and type of the task. |
traits | Optional free-form key and value pairs. Each create or update replaces them, so traits that you do not send are removed. |
The answer is 409 when the task cannot change any more: it is completed or canceled, it is locked by a Rologi Flow process, or a line to remove has stock reserved.
Priority
priorityTimestamp: the time used to order pick tasks. Rologi Flow uses the current time when you do not send it.priority: the order of tasks that have the same priority timestamp. A lower value is a higher priority.
Cancel
Send DELETE with the task identifier. Rologi Flow never removes a pick task. The request asks for its cancellation, and the operation is idempotent.
| Status | Meaning |
|---|---|
| 202 | The cancellation is accepted. The task is REVOKED until the picks in progress are finished. |
| 204 | The task is canceled, or it does not exist. |
| 409 | The task cannot be canceled. See the type of the error. |
| Error type | Meaning |
|---|---|
TASK_COMPLETED, TASK_FAILED | The task is finished. It cannot be canceled. |
TASK_SUBMITTING | The submission of the task to the automation system is in progress. The task cannot be canceled until it ends. |
TASK_PICKING | The task is being picked, and the automation system does not support the cancellation of such a task. |
Goods that are already picked stay valid and leave with their container. The goods that are left are not picked any more. PickTaskFinished with the state CANCELED tells the picks that were done.
Read
GET /api/pick-tasks/{id} returns the task with its state and its lines. The answer is 404 when no such task exists. To read many tasks, see search and paging.
| Object | States |
|---|---|
| Task | CREATED, GROUPING_RESOLVED, ALLOCATION_RESOLVED, SUBMITTED, PICKING, REVOKED, COMPLETED, CANCELED, FAILED |
| Line | CREATED, SUBMITTED, PICKING, COMPLETED, SHORT_PICKED, CANCELED, FAILED |
| Time | Meaning |
|---|---|
createdAt | The time when Rologi Flow created the task, for example when it received the task from your system. It is not the start of the work. |
startedAt | The time of the first pick of the task. Not given before that. |
finishedAt | The time when the task reached a final state. See the state for the outcome. |
updatedAt | The time of the latest recorded change. It is not the time of completion. |
A task that is part of a group has a pickTaskGroup identifier.
Reference
Create or update, get, list, search, cancel. Events: picking events.