Resubmit Queue Item

POST: /queue/resubmit/item

This method is meant to resubmit an existing item to its queue. When an item is submitted again to the queue, both queue item and queue are affected.

The possible states for a queue item, along with their permitted changes are as follows:

  • FINISHED_WARN: change permitted.
  • FINISHED_OK: change is not permitted.
  • IN_PROCESS: change is not permitted.
  • PENDING: could be changed, but it's better not to. Unless required, it is not permitted.
  • DISABLED: could be changed, but it's better not to. Unless required, it is not permitted

The possible states for a queue, along with their permitted changes are as follows:

  • PENDING
  • IN_PROCESS
  • FINISHED
  • RESERVED: cannot be changed
  • CLOSED

After resubmitting, the state of the item queue will change to PENDING, and the state of the queue will change also to PENDING.

Input parameters

Parameter Example Comments
id 5da83220cabb54eb6f685eea Internal id of the queue item
key testKey  
reference testReference  
remainingAttempts 10  
priority HIGH  
functionalData {"a": "1", "b": "2","c": "3"} Functional data associated with the queue item
labels ["11", "12"] Permissions for the queue item

Output (if "invocationResult" is "OK")

The following attributes are provided in the result.item key.

Attribute Example Comments
id 5cf8ec61deac351a6604fd74 Internal id of the queue item
queueId 5cf8ec2adeac351a6604fd71 Queue id to which the item belongs
queueName nasdaq-queue-warnings-1attempt Queue name to which the item belongs
key testKey key
reference testReference -
state PENDING Item's state. Possible values are DISABLED, PENDING, IN_PROCESS, FINISHED_OK, FINISHED_WARN
duration 33 Duration in milliseconds
lastExecutionResult - Array of data including details about the robotic process to last execute the queue and item, described below.
lastExecutionResult.id null Internal id for the executed robotic process
lastExecutionResult.robotName "5e4a72abe18edacba723b298" Robotic process name, immutable since creation
lastExecutionResult.robotId "5e4a72abe18edacba723b299" Unique id for the executed robotic process
lastExecutionResult.executionNumber 1 Execution number
lastExecutionResult.itemIndex 2 Item index in this execution
lastExecutionResult.itemKey "jidoka" Item key
lastExecutionResult.itemResult "OK" Result
lastExecutionResult.itemSubResult null Sub-result
lastExecutionResult.itemSubResultText null Sub-result in text format
lastExecutionResult.itemResultDetail "jidoka" Result details in text format
lastExecutionResult.properties "Time required": "0.33", "Number of results":"315000" Map of properties associated with the execution
lastExecutionResult.currentTimeMillis 1586870440301 Time the queue items was processes, expressed in UNIX epoch time
lastExecutionResult.duration 3334 Duration in milliseconds
lastExecutionResult.testing false Boolean indicating whether this execution was a test
remainingAttempts 9 Number of remaining attempts
priority HIGH Priority, possible values are HIGHEST, HIGHER, HIGH, NORMAL, LOW, LOWER, and LOWEST
executionResults 5da84a6bcabb54eb6f685f30 List of executions where this queue item was processed
functionalData {"a": "1","b": "2","c": "3"} Functional data associated with the queue item
labels ["11", "12"] Permissions for this queue item
lastUpdatedTimestamp 1542807938000 Date and time the queue item was last updated, expressed in UNIX epoch time (milliseconds)
createdTimestamp 1542807935990 Date and time the queue item was created, expressed in UNIX epoch time (milliseconds)
lastNodeName localhost-jviera#1 Name of the resource to process the last queue item
lastNodeId 5dad800406938caad291b213 Id of the resource to process the last queue item

Possible reasons for unsuccessful events ("invocationResult" is "KO")

None


This version of the Appian RPA documentation was written for Appian 20.4, and does not represent the interfaces or functionality of other Appian versions.
Open in Github Built: Fri, Nov 19, 2021 (11:59:11 AM)

On This Page

FEEDBACK