Update Item State
Updates the state of a queue item
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
if ContinueOnError property is true, no error is caught when the project is executed even if Catch node is used.
Input
- Item ID - The ID of the queue item to update.
- Progress - The progress of the queue item.
- Reference - The reference of the queue item.
- Priority - The priority of the queue item. Possible values are: Low, Normal, High.
- Status - The status of the queue item. Possible values are: Successful, Failed, Abandoned.
- Additional Try Count - The additional try count for the queue item.
How It Works
The Update Item State node modifies the state and properties of a queue item:
- Receives Item ID and state update parameters
- Validates inputs (Item ID, Progress, Priority, Status, etc.)
- Sends update request to Robomotion Orchestrator
- Updates item properties:
- Progress: Custom text to track processing stages
- Priority: Changes item priority (Low/Normal/High)
- Status: Marks as Successful, Failed, or Abandoned
- Additional Try Count: Adds more retry attempts
- Reference: Updates reference information
- The updated item becomes available based on new state
Requirements
- Item ID must be provided (from Get Next Item or Wait Item)
- The item must exist in the queue
- Appropriate permissions to update queue items
Error Handling
| Error Code | Description | Solution |
|---|---|---|
| Core.Queue.Update.ErrOnCreate | Failed to parse node configuration | Verify node configuration is valid JSON |
| Core.Queue.Update.OnMessage | Message parsing failed | Check input message format is valid |
| Core.Queue.Update.OnMessage | "Get item id error" | Ensure Item ID is provided |
| Core.Queue.Update.OnMessage | "Get item progress error" | Verify Progress input is valid string |
| Core.Queue.Update.OnMessage | "Get item reference error" | Verify Reference input is valid string |
| Core.Queue.Update.OnMessage | HTTP request error | Check network connectivity |
| Core.Queue.Update.OnMessage | API returned error | Verify item exists and you have permissions |
| Core.Queue.Update.OutputMarshal | Failed to serialize output | Check message structure |
Usage Examples
Example 1: Mark Item as Successfully Processed
Complete processing and mark item as successful:
[Get Next Item] → itemId, itemData
↓
[Process Data Successfully]
↓
[Update Item State]
Item ID: ${itemId}
Status: Successful
Progress: "Completed"
↓
[Delete Item]
Example 2: Handle Processing Failure with Retry
Mark item as failed to allow retry:
[Get Next Item] → itemId, itemData
↓
[Try: Process Item]
↓ (error caught)
[Update Item State]
Item ID: ${itemId}
Status: Failed
Progress: "API call failed - will retry"
Reference: `Error: ${error.message}`
Result: Item returns to queue for retry (if tries remaining)
Example 3: Track Processing Stages
Use Progress to track multi-stage processing:
[Get Next Item] → itemId, itemData
↓
[Update Item State: Progress = "Validating"]
↓
[Validate Data]
↓
[Update Item State: Progress = "Processing"]
↓
[Process Data]
↓
[Update Item State: Progress = "Saving"]
↓
[Save to Database]
↓
[Update Item State: Status = Successful, Progress = "Complete"]
Usage Notes
- When
Continue On Erroris enabled, errors are not caught even if Catch node is present - Status values:
- Successful: Item completed successfully, won't be retried
- Failed: Item failed, will retry if attempts remain
- Abandoned: Item exceeded max retries or permanently failed
- Priority values: Low (1), Normal (2), High (3)
- Progress is a freeform text field for tracking stages
- Additional Try Count adds more retry attempts to the item
- Reference can be updated to add notes or error messages
- Updating status to Successful or Abandoned removes item from active processing
- Failed items return to queue for retry if try count allows
Tips
- Always update status after processing (Successful or Failed)
- Use Progress field to track multi-step processing for debugging
- Add error messages to Reference for failed items
- Set Status to Successful before Delete Item to maintain clean audit trail
- Use Failed status for retriable errors (network issues, temporary failures)
- Use Abandoned status for permanent failures (data corruption, business rule violations)
- Increase Additional Try Count cautiously - investigate why retries are needed
- Update Priority to escalate urgent items
- Track Progress for long-running processes to show intermediate states
- Combine with Log node to record state changes
- Use reference field to store error details or processing notes
Related Nodes
- Get Next Item - Source of Item ID
- Wait Item - Alternative source of Item ID
- Delete Item - For removing completed items
- Get Items - For monitoring item states
- Add Item - For adding items to queue