Calculate Client Security Hash - 2020.10 Exercise Hints

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

| Exercise Hints

Calculate Client
Security Hash

Calculate Client Security Hash – Exercise Hints 1


Contents
1. Prerequisites 3
2. Configuration in UiPath Studio 3
2.1. Create a new project 3
2.2. Whiteboard your workflows 3
2.3. Develop your workflows 4
2.4. Edit the Configuration file 4
3. Change the TransactionItem Data Type 4
4. Applications Used: open/close/kill 4
4.1. Edit the InitiAllApplications.xaml workflow 4
4.2. Edit the Framework/CloseAllApplication.xaml workflow 5
4.3. Edit the Framework/KillAllProcesses.xaml workflow 5
5. Business Process: Transaction Data and Process 5
5.1. Edit GetTransactionData.xaml workflow 5
5.2. Edit Process.xaml workflow 5

Calculate Client Security Hash – Exercise Hints 2


1. Prerequisites
The automation will need to process DataRows for each transaction so the data type for
TransactionItem will be DataRow.

2. Configuration in UiPath Studio

2.1. Create a new project

Create new project using the Robotic Enterprise Framework template. Set a proper name for
the project. Provide a proper description.

2.2. Whiteboard your workflows

Module Name Description Pre-condition Post-action Arguments


System1_Login Opens a IE browser to N/A Opens IE in_System1URL -
the input URL System 1 String
Dashboard if in_System1Credential
credentials are – String
correct.
System1_Close Closes System1 IE System 1 Logs Out and N/A
Browser Opened, Log Out Closes IE
button accesible
System1_Navigate Navigates to Logged into Navigates to In_System1URL –
To_Dashboard Dashboard from ANY System 1. Any the Dashboard String
page in System1 page open.
System1_Navigate Navigates to the WI System 1 open at WI Details in_WIID - String
To_WIDetails Details Page using the any page open in_System1_URL -
WIID input argument String
System1_Navigate Navigates to System 1 Work Items N/A
To_WorkItems WorkItems Page Dashboard Open Page open

System1_ExtractW Extracts the entire WorkItems page None out_TransactionData –


IsDataTable Table of all Work Items Open DataTable
in the output argument
System1_ExtractCli Extracts the ClientID, WorkItem Details None out_ClientID - String
entInformation ClientName and Page open out_ClientName -
ClientCountry and String
writes to the output out_ClientCountry -
arguments String
System1_UpdateW Updates the Work Item System 1 WI None in_Comment - String
orkItem to the Status and Details Page in_Status - String
Comment input open
arguments. Status can
be "Open",
"Completed" or
"Rejected"
SHA1Online_Open Opens SHA1Online None Opens IE in_SHA1OnlineURL –
from the URL SHA1Online String
argument
SHA1Online_Close Closes SHA1Online SHA1Online Closes IE N/A
Main Page open SHA1Online

Calculate Client Security Hash – Exercise Hints 3


Module Name Description Pre-condition Post-action Arguments
SHA1Online_Proce Retrieves the SHA1Online None in_HashFormula -
ssHash HashResult based on open String
the input HashFormula out_HashResult -
String
SendEmail Sends Exception Email None None in_To - String
using Outlook and the in_Subject - String
Input Arguments in_Body - String

2.3. Develop your workflows

Create three new folders in the project folder. Name them System1, SHA1Online and
Common. Inside the three folders, develop sequence-based workflows for each application,
based on the process whiteboard. Use the Common folder for SendEmail.xaml.

2.4. Edit the Configuration file

In the Settings sheet of Config.xlsx, store the important settings for your project:

• The URL for System1


• The System1 credentials stored in Orchestrator or Windows Credential Manager
• The URL for SHA1_Online
• The Business Process Name
In the Constants sheet, set the MaxRetryNumber to 2.

3. Change the TransactionItem Data Type


In Main, update the datatype for the TransactionItem variable to DataRow. Make the
remaining changes indicated in the REF without Queue Items checklist. You should resolve
all validation errors and update all argument mappings which use TransactionItem.

4. Applications Used: open/close/kill

4.1. Edit the InitiAllApplications.xaml workflow

Invoke the workflows used to log into System1 and open SHA1Online. Pass the URLs and
credential values to the workflows.

Calculate Client Security Hash – Exercise Hints 4


4.2. Edit the Framework/CloseAllApplication.xaml workflow

Invoke the workflows used to close System1 and SHA1Online.

4.3. Edit the Framework/KillAllProcesses.xaml workflow

Use a Kill Process activity here to indicate the browser you want to force-close.

5. Business Process: Transaction Data and


Process

5.1. Edit GetTransactionData.xaml workflow

Change the data type for the out_TransactionItem argument from QueueItem to
DataRow.and delete the Get Transaction Item activity.
Use an If activity to check if this is the first run of the workflow. Note that io_TransactionData
should be empty only on the first run. If it is the first run, then invoke the workflows used to
navigate to the Work Items page and extract the DataTable.
Filter the DataTable using a FilterDataTable activity or the Select method to keep only the
items with the Type WI5 and the Status Open. Log the total number of transactions.
Use an If activity to assign the correct value to the Transaction Item if the Transaction
Number is lower or equal to the number of available transactions, or assign Nothing to the
TransactionItem if the Transaction Number exceeds the number of available transactions.

5.2. Edit Process.xaml workflow

Set the correct datatype for in_TransactionItem. Invoke the workflows to navigate to the
Work Item Details page, extract client information, process the Hash code, update the Work
Item and navigate back to the Dashboard.

Calculate Client Security Hash – Exercise Hints 5

You might also like