Integrate

Task and bin flow

Independent source arrivals, retained targets and correlated progress.

Task, operation and station job

A task contains one target and several required operations. Each operation identifies its source bin, product and quantity. The coordinator executes one station job at a time; station job identifiers remain internal. Correlate your integration using taskId and operationId.

Loading diagram…

The station adapter preserves the required source/target readiness sequence. A task admission or source-release notification does not prove that an item was placed.

Choose source order

  • READINESS: prepare a matching ready source. When sources become known together, use operation ID as the deterministic tie-break. Array order is not priority.
  • PRIORITY: every operation supplies a positive, unique priority. The lowest value goes first, including waiting for that source to arrive.

A running operation is not preempted by a later arrival.

Retain a target

Set the target state to READY when it is already at its port. It can remain there across tasks; a new arrival event is not required. NOT_READY in a task is a hint and does not clear recorded occupancy.

Report ABSENT with both the port ID and the bin ID that left. A repeated READY report is not a new arrival. Port reports must be serialized; after reconnecting, reconcile the current state before continuing.

Event categories

data.typeMeaning
TASK_STATE_CHANGEDParent state and per-operation results.
OPERATION_STATE_CHANGEDProgress/result of one required contribution.
BIN_RELEASEDVerified permission to exchange the identified source bin.
STATION_STATE_CHANGEDObserved station state, with its observation time.

All events share metadata.messageId and metadata.createdAt. Station/occupancy facts may also carry observedAt. A missing result count means unknown; zero is a measured zero.

The task ends only after its required operations are resolved. Task states include RECONCILIATION_REQUIRED for uncertain outcomes. No target-release or emergency-stop guarantee is defined here.

Current runtime boundary

Task mode persists work and bin observations, submits sequential station jobs, processes authenticated results and delivers typed WCS events with retry. It accepts one task with unresolved physical execution per station; another task returns 409. Event delivery runs independently of station commands.

Enable task mode for your installation before using these routes. Port mappings, registered product IDs, the event receiver and separate command/callback credentials must be configured. Verified source-release notifications require installation commissioning; absence of a release is not permission to move a source.

The customer API uses task IDs and operation IDs throughout. Station job IDs and station command/callback formats stay inside the adapter. The shared product registration and station commands remain available alongside this workflow.

Cancel a task

Use POST /task/{taskId}/cancel. Remaining contributions will not start. Unsubmitted work cancels locally; active work receives one station cancellation request. A 202 response means the task still needs resolution, not that motion has stopped. Continue reporting actual target readiness so an already grasped item can be placed. Actual completed quantities are retained. Cancellation is not an emergency stop.

Uncertain outcomes

A timeout or restart never automatically repeats a physical pick. RECONCILIATION_REQUIRED makes uncertainty explicit. A terminal callback can resolve a lost acknowledgment. If execution finished but quantities conflict, accounting still needs investigation; those are separate concerns.