In the context of the REFramework, if the OrchestratorQueueName key is present in both the Settings and Assets sheets, but an asset with the corresponding name is not present in Orchestrator, what will be the behavior at run time?

In the context of the REFramework, if the OrchestratorQueueName key is present in both the Settings and Assets sheets, but an asset with the corresponding name is not present in Orchestrator, what will be the behavior at run time?
A . The flow will throw an exception in InitAllSettings workflow.
B . The flow will use the value from the Settings sheets since the asset is missing.
C . An empty string will be saved for the "OrchestratorQueueName" key in the config dictionary.
D . The "OrchestratorQueueName" key is not added to the config dictionary and the flow will throw in Get Transaction Data workflow.

Answer: B

Explanation:

The REFramework template is a robust and scalable framework for building RPA projects1. It uses a config file to store the settings and constants that are used throughout the project2. The config file has two sheets: Settings and Assets. The Settings sheet contains the key-value pairs that are read by the InitAllSettings workflow and stored in the config dictionary. The Assets sheet contains the names of the assets that are stored in Orchestrator and need to be retrieved by the InitAllApplications workflow. The OrchestratorQueueName key is used to specify the name of the queue that is used to store the transaction items for the process. If the OrchestratorQueueName key is present in both the Settings and Assets sheets, but an asset with the corresponding name is not present in Orchestrator, the behavior at run time will be as follows:

The InitAllSettings workflow will read the value of the OrchestratorQueueName key from the Settings sheet and store it in the config dictionary.

The InitAllApplications workflow will try to retrieve the asset with the name OrchestratorQueueName from Orchestrator using the Get Asset activity. Since the asset does not exist, the activity will throw an exception.

The exception will be caught by a Try Catch block and handled by a Log Message activity with level Warning and message “Asset not found: OrchestratorQueueName”.

The flow will continue with the next asset in the Assets sheet or move to the next state if there are no more assets.

The flow will use the value of the OrchestratorQueueName key from the config dictionary whenever it needs to access or update the queue.

Therefore, option B is correct. Option A is incorrect because the exception is thrown in InitAllApplications workflow, not InitAllSettings workflow. Option C is incorrect because an empty string is not saved for the OrchestratorQueueName key in the config dictionary. Option D is incorrect because the OrchestratorQueueName key is added to the config dictionary and the flow does not throw in Get Transaction Data workflow.

Reference:

How to Use Enhanced REFramework to Implement UiPath Projects article from UiPath

Config.xlsx documentation from UiPath

[InitAllSettings.xaml] documentation from UiPath

[InitAllApplications.xaml] documentation from UiPath

[TransactionItem Variable] documentation from UiPath

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments