Map out your process

This chapter describes step 1 in the RPA Studio First Steps tutorial.

What will you do here? 

You will outline your process in the Flowchart tab.

Why is that important?

Before you even think about automation, take the time to map out your business process. This helps you to figure out the following things:

  • What exactly do you need the Bot to do - and when?

  • Which elements are involved? Which user interfaces, files, etc.?

Video

The following video takes you through the mapping process. A step-by-step description is below.

Create a new Bot

First, you need to create a new Bot. To do so, follow the steps below:

  1. In RPA Studio, create a new folder for your Bot. To do so, right-click RPA folder and select Create Folder from the mini toolbar.

Create a new folder

  1. Rename the folder to Tutorial.

  2. Right-click the folder and select Create Bot from the mini toolbar, or press CTRL+N, CTRL+B.

  3. Name the Bot Tutorial Bot.

New Bot, pristine Flowchart

Map out your basic process

The Flowchart tab is where you define which actions you want your Bot to perform. These actions are called Steps.

For now, you'll use Placeholders. Placeholders are "empty" Steps that help you to map out your process before you start designing your Bot.

Consider the goal of this tutorial:

You want the Bot to register someone for the event, remember the resulting registration code, and save the code to a file.

So a logical first Step for the Bot would be to open the registration page in the browser.

  1. In the Flowchart tab, click on Add. This opens the Add dialog.

  2. In the Placeholder tab, enter the name Open the registration page into the text box and press ENTER, or click on Create Placeholder.

Create a Placeholder via the Add dialog

  1. Next, create four Placeholders that chart the basic process:

    • Enter registration data: The Bot should enter the registration data for a particular visitor. For this, the Bot has to interact with the registration form, i.e. the demo application.
    • Get code: The Bot should get the registration code for this visitor. For this, the Bot has to interact with the registration form, i.e. the demo application.
    • Write code to Notepad: The Bot should write the code to a Notepad file.

    • Save file: The Bot should save the file.

    You can create these Placeholders from scratch via the Add dialog. Alternatively, you can copy & paste existing Placeholders and rename them. Either press CTRL + C, CTRL + V to copy & paste, or drag an existing Placeholder while holding CTRL.

This is your basic process:

Initial process outline

Figure out additional requirements

Now it's time to figure out any extra Steps or checks you might need in between.

Steps in a Flowchart aren't set in stone. You can always add new Steps or rearrange Steps via drag and drop.

For instance, you might want to make sure that the browser window is front and center. This should happen between Open the registration page and Enter registration data.

  1. To add a Placeholder at this position, hover your mouse over the gray arrow between the two Steps.

  2. The gray arrow then turns into the Add icon. Use it to add another Placeholder.

    Alternatively, you can add a Placeholder at the bottom of the Flowchart and drag it to the desired position.

  3. Name the Placeholder Manipulate browser window.

Hover between Steps to create a new Step at this position

Next, you need to think about how the Bot should interact with Notepad: It has to open Notepad, write the code to a new file, and then save and close the file.

But first, you need another check.

Since the Bot has to open Notepad, you need to ensure that the program isn't already open. If it were, the Bot wouldn't know which window to steer - and throw an error.

To avoid this, you can use an IF Statement to check whether Notepad is open. IF Statements check whether a given statement is TRUE or FALSE. Depending on the outcome, the Bot performs different actions (see "Create an IF Statement").

  1. Open the Add dialog by clicking on Add. You can position the Step in one of the following ways:

    • Directly between the Steps Get code and Write code to Notepad

    • At the bottom of the Flowchart, in which case you need to drag and drop it to the right position

  2. In the Logic tab of the Add dialog, click on IF Statement. This adds an IF Statement to your Bot:

Newly created IF Statement in the Flowchart

The blue element with the question mark is a so-called Control Expression. That's the statement the Bot checks to see whether it's TRUE or FALSE.

You'll learn how to design Control Expressions in a later chapter of the tutorial. For now, use Placeholders.

  1. Enter the placeholder text Check if Notepad is open into the Control Expression.

  2. If the statement is FALSE, i.e. Notepad isn't open, the Bot should open it.

    So add a Placeholder to the No path of the IF Statement.

  3. Name the Placeholder Open Notepad.

IF Statement in the Flowchart

As you did with the browser window, you also want the Bot to bring the Notepad front and center. The Bot should do this even if Notepad is already open. In other words, this action is no longer part of the IF Statement.

  1. Add a Placeholder after the IF Statement and name it Bring Notepad front and center.

Finally, the Bot should close the file and then close the browser window. To do so, add two more Empty Steps at the bottom of the Flowchart:

  1. Add a Placeholder named Close file.

  2. Add a Placeholder named Close browser.

This gives you the final process outline:

Final outline

What's next

Now you know what you want the Tutorial Bot to do.

Before you design the Tutorial Bot, i.e. determine how to automate the process that you have just mapped out, you need to scan your application.

Was this information helpful?

Tricentis RPA Studio Manual 2020.2 © Tricentis GmbH