Hello everyone,
Is this possible to use 2 excels in reframework and compare there rows
Regards,
Supriya
Hello everyone,
Is this possible to use 2 excels in reframework and compare there rows
Regards,
Supriya
Hello @supu123 ,
It is possible. But it will require you to modify your implementation beyond the original project template .
Fundamentally the REFramework is meant to load a single dataset in the INIT state , get each record of that dataset in the GetTransaction State and pass it down to the Process State where it will be finally processed.
Based on your definition of what a Transaction is you will have to modify the framework.
For example: If comparing the two Excel Data tables is one big operation, then your Process will contain only 1 major transaction. In this case you may modify the framework as follows:
I hope this helps
Thanks
Hi @AndyMenon
Can u elaborate step 2 and 3 a little more
Thankyou for support
Thanks and Regards,
Supriya
Ok, this is one type of implementation that makes the following assumptions:
With these assumptions, this is how the Framework is going to be set up:
Main.xaml
Alternately, you can enhance Main.xaml to have 2 input arguments. You can pass the paths to the two Excel files as arguments and your automation will become versatile enough to process different files
The INIT State
Within INIT State you will implement the activity to load Data from Excel 1 and assign it to TransactionItem DataTable
Transaction State
Process State
Alternately, you can modify Process to accept both, the Transactionfield1 and Transactionfield2 because the Process state should have access to these pieces of information as it the one doing all the work and executing the process logic.
Process Implementation
So, by the time you hit Process.xaml, it has access to both - the Excel1 in the form of in_TransactionItem DataTable, and Excel 2 in the form of the file path in_Transaction_Field2
These steps constitute a Single-Unit Transaction Process. Once the Process.xaml has executed successfully once, the Process will stop because the Transaction State will not return a valid transaction as the TransactionNumber has been incremented to 2 .
You can use this as a starting point and set up different ways of working with the two Excels.
I hope this helps