開発者は REFramework を使用して、Excel テーブル内のトランザクションの処理を伴うビジネス プロセスを自動化する必要があります。テーブル内の各トランザクションは同じ手順に従って処理する必要があり、環境内にオーケストレーターがないためキューは使用できません。
このシナリオでは、どの変数タイプが TransactionItem に最適ですか?
正解:A
Explanation
The REFramework template is a robust and scalable framework for building RPA projects1. It uses a state machine to handle the different stages of the automation process2. One of the states is the Process Transaction state, where the main actions are performed on each transaction item3. A transaction item can be a queue item from Orchestrator, a data row from an Excel file, or any other type of data that needs to be processed. If the transactions are stored in an Excel table, the best variable type for TransactionItem is System.Data.DataRow, as it represents a single row of data in a DataTable. A DataTable is a collection of rows and columns that can be read from or written to an Excel file using the Excel activities. Therefore, option A is correct.
Option B is incorrect because UiPath.Core.QueueItem is a variable type that represents an item from a queue in Orchestrator. If there is no Orchestrator in the environment, queues cannot be used and QueueItem is not applicable. Option C is incorrect because System.Data.DataTable is a variable type that represents a table of data with rows and columns. A single transaction item cannot be a whole table, but only a row from the table.
Option D is incorrect because System.Data.DataRow[] is a variable type that represents an array of data rows.
An array is a collection of items of the same type that can be accessed by an index. A single transaction item cannot be an array, but only an element from the array.
References:
The UiPath ReFramework documentation from UiPath
State Machines documentation from UiPath
Process.xaml documentation from UiPath
[TransactionItem Variable] documentation from UiPath
[DataRow Class] documentation from Microsoft
[Excel Activities] documentation from UiPath
[QueueItem Class] documentation from UiPath
[DataRow[] Structure] documentation from Microsoft
[Array Class] documentation from Microsoft