Today I’m going to show you exactly how to work with Robocorp Data Management Work Items.
In this comprehensive guide, I’ll cover –
So if you want to learn and start working with Robocorp Work Items, You’ll love this guide.
Let’s get started.
Read more about the keywords here – https://robocorp.com/docs/libraries/rpa-framework/rpa-robocorp-workitems/keywords
As stated above work items are used for managing the data that passes through the various steps of automation. Where each step takes input from previous steps to create a work item for the next step.
Structure of Work items –
Exceptions are everywhere and we can’t assume that all the work items will be processed successfully, some might fail due to application issues when chrome crashes or any other HTTP error, some might fail due to business exceptions and further processing of the work item is not possible.
RPA.Robocorp.WorkItems Keyword libraries provide the keyword ‘Release Input Work Item’ to set the status of the active input work item.
So that status of each work item can be reported and analyzed.
The work items can be released with either “success” or “failure” using the keywords “DONE” and “FAILED”.
Saying “FAILED” is not going to help the operation team or Business Users so the additional exception details must be sent to the control room.
You can set up status as Filed with exception type, exception code if any, and message.
When executing a robot in a cloud environment like Control Room, the RPA.Robocorp.WorkItems library will store the work item in the cloud environment, sharing its contents between steps defined in the same process, without any configuration needed.
However, when running locally, the work items can be simulated using folder structure and JSON files.
To run specific tasks with specific inputs in the command-line or Robocorp Lab Terminal you can run the following commands:
Robot Overview
This robot tracks the cryptocurrencies portfolio of customer from an incoming Excel file, the individual crypto coins is tracked for price movement is then handled individually in parallel in cloud container.
The robot demonstrates the concept of work items feature of Robocorp-
Robot Tasks
The robot is split into 3 tasks.
Robocorp Library Used
Additional Python Library Used
ID | Coin | Symbol |
---|---|---|
1 | bitcoin | BTC |
2 | ethereum | ETH |
3 | tether | USDT |
4 | solana | SOL |
5 | cardano | ADA |
6 | xrp | XRP |
7 | avalanche | AVAX |
8 | litecoin | LTC |
9 | chainlink | LINK |
Sign in to your account