Basically with that exercise you’re dealing with the process of generating yearly reports from a web application.
Let’s break down the instructions
- For the first one Edit Get Transaction Data XAML:
In the “Get Transaction Data” part of the REFramework, you’re responsible for getting individual transactions to process. This hint is suggesting that you should modify the “Get Transaction Data” workflow (XAML) as
Delete Retry Get Transaction Item Activity:
You should remove the “Retry Get Transaction Item” activity. This is because you don’t want to keep retrying if a transaction is not available. Instead, you want to determine whether a transaction is available or not.
Use an Element Exists Activity:
To check whether there is a page number UI element on the work item page that corresponds to the current transaction number. If such an element exists, it means a transaction is available. If not, it means the transaction is not available.
Assign Transaction Number:
If the element exists, you assign the transaction number to out_transactionitem
. If not, you assign zero to out_transactionitem
. This is how you manage and identify the availability of transactions.
Why to do
This is done because the work item page may not exist for all transaction numbers. For example, if a transaction has already been processed, then the work item page for that transaction may be deleted. In this case, we want to skip processing the transaction.
- For second point
Edit Process.xaml Workflow:
Once you’ve determined that a transaction is available, you need to process it. This part of the hint suggests that you modify the “Process.xaml” workflow as
Determine If the Browser Is on the Work Item Page:
You should check whether the web browser is on the work item page indicated by the transaction item. This step ensures that you’re working with the right page before proceeding with scraping data.
Scrape Data and Filter by Type:
If the browser is on the work item page, you should then scrape the data from that page. This data might include information about a report. After scraping, you should filter the data by type (e.g., yearly report) and process it accordingly.
Add to Corresponding Queue Items:
Based on the filtered data, you should add corresponding queue items for further processing. For example, you might add a queue item for each yearly report that needs to be generated.
why to do
This is done because we only want to scrape the data for the current transaction. If the browser is not on the work item page for the current transaction, then we want to skip processing the transaction.
These modifications are meant to ensure that the automation process works efficiently and that you’re correctly handling transactions, which can vary in availability and content.
Hope it’s clarified
Cheers @Jai_Pande