queueId: Assigns the queue with this identifier to the execution.This method receives AssignQueueParameters, where you can identify a specific queue using the following attributes: To assign a queue to a robotic task, use the assignQueue() method. To treat the items, first you must tell the robotic task which queue to process. Once the queue is created and has items associated with it, it's common that one or more robotic tasks will treat the items. Working with a queue from the robotic task setReference ( "theItemReference" ) qmanager. setFunctionalData ( functionalData ) List files = new ArrayList () files. put ( "another_key", "another_value" ) iParam. put ( "one_key", "one_value" ) functionalData. setKey ( "theItemKey" ) Map functionalData = new HashMap () functionalData. The following code snippet illustrates a sample item added to a queue.ĬreateItemParameters iParam = new CreateItemParameters () iParam. You can also associate a series of files with an item using the setFiles() method. The value of this attribute has to be considered each time a robotic task requests the next item to the system. setPriority(): The value that determines the order in which items should be processed in a queue.This is useful when a robotic task does not finish due to external factors. setRemainingAttempts(): Specifies the number of times a robotic task should try to process the item.By default, an item starts with a PENDING status. setState(): The status of an item in the process.This is useful if you want to place the result of the process back in the original source. For example, in a list of items created from an Excel file, the reference could be the row number where the data was obtained from. setReference(): The value used to locate the item in the source.It's recommended that this is a unique ID so it can be quickly located in the list of items. setKey(): The element's identifier in the queue.The createItem() method receives CreateItemParameters, where you can create a map containing functional data and define the following attributes: To create an item, use the createItem() method. Once you've created a queue or located an existing queue, you can create the queue's process items. HIGH ) String labels = boolean queueExists = ! foundQueues. setDescription ( "Description of the queue" ) qParam. For example:ĬreateQueueParameters qParam = new CreateQueueParameters () qParam. To initialize the interface, you must first declare an attribute of type IQueueManager in your robotic task. The IQueueManager interface contains all the methods an Appian RPA robotic task needs to use queues. The following sections describe how to create a queue within your source code. Navigate to the Monitoring tab to create queues in the console. You can choose to configure your process queues using the Appian RPA Console or directly in your robotic task. The three primary interfaces you will interact with are: The .api.queue package contains several interfaces involved in process queue management. Each item contains two sets of attributes: data about the state of an item in the queue, and functional data. Using Excel as an example, a queue can be considered the entire spreadsheet, while each row would be an item. Each item represents an element that the robotic task will interact with. In Appian RPA, process queues are a set of grouped items to be processed by one or several robotic tasks.Ī queue represents a container of items. This content applies solely to Appian RPA, which must be purchased separately from the Appian base platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |