In the Get In Get Transaction Data state of the Main workflow, what happens before the next transaction item is retrieved?

In the UiPath Robotic Enterprise Framework template, in the Get Transaction Data state of the Main workflow, what happens before the next transaction item is retrieved?

@egarciag96

One by one transactionItem will go to process TransacionData and will process here. If any exception occurs then it will retry the transactionItem. If any Business exception occurs then it will catch it and will process next transactionItem.
Once all transactionItems completed then it will go to End state.

1 Like

HI @egarciag96

Get Transaction Data

As you many be already aware, this is the state which checks and selects transactions to be processed. So in this state, only one transaction is selected at a time using the TransactionNumber variable. Once the transaction is extracted/ selected, it passes the transaction to the process state for processing.

Process State

Here, the provided transaction will be processed. In case of a system error, it will redirect back to the INIT state to restart the processing of the same transaction from the beginning. If the process run into a business rule exception, then it will finish the processing of the transactions based on the flows we have designed in the workflow and move to the next transaction.

Once the processing is completed successfully, it moves to the Set Transaction Status.xaml. This is where the transaction status is marked as successful, complete or error. Accordingly, in the same xaml file, the TransactionNnumber variable is also incremented by 1 so that next time when the execution gets into Get Transaction Data, it can access and get the next available item to process using the TransactionNumber variable.

So its actually a looping process that flows like INIT -> Get Transaction Data -> Process -> Get Transaction Data -> Process and so on…

Hope this description helps you to understand how it works!!

Let know if you have any further doubts in this… would be glad to help to clear it out :slight_smile:

5 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.