When it comes to automation, we have to know some minimal basics of automation, for example, if you have thousands of pdf and then you need to convert them to Excel. If all the pdf are in the same format, then it is easy to convert them to an excel.
If each pdf is in a different format, then it is challenging to do automation because most of the time, if the formats are different then the outcomes will be unpredictable. You have to understand what things can be automated and which things cannot be automated.
To understand the basics of automation, you have to analyze the process which you are going to automate, such as:
The Step by step execution of your automation workflow is called a sequence. The sequence will be found inside the activities pane. A Sequence can be dragged and dropped inside the designer pane.
We can create sequences inside another sequence, and you can add any activity inside the sequence, and also you can copy and paste the activity anywhere inside the sequence.
If you do not want any activity inside the sequence, you can delete it by right-clicking on the activity
Variable may be defined as the symbolic name associated with a value that may change. The UiPath studio contains different types of variables and is used to store multiple types of data ranging from generic value, text, number, data table, time & date.
In the UiPath Studio, the Variable panel is used to create variables and enables us to make changes to them.
These four fields are present in the variable pane such as Name, Variable Type, Scope, and Default.
As the name suggests, the argument panel is used to create arguments and enables us to make changes to them. The following screenshot gives an insight into the argument panel.
In the above screenshot, you can notice that there are four fields namely Name, Direction, Argument Type and Default Value.
Flowcharts can be used in a variety of settings, from large jobs to small projects that you can reuse in other projects. Flow chart starts with a start button and then we can add N number of activities organized accordingly.
The most important aspect of flowcharts is that, unlike sequences, they present multiple branching logical operators, that enable you to create complex business processes.
The flowchart can connect activities in multiple ways. Flowcharts come with the Auto Arrange option in the context menu. The flowchart is more readable and it is the better way to do things.
Let us create a Flowchart, go to a new option in the ribbon and select the Flowchart.
Enter the name to flowchart and click on the Create button
The following example demonstrates to check whether the given number id even or odd.
Create a flowchart and then add the input dialog activity into it and then drag a line from start to the input dialog box, which means that the first activity will start from the strat is input dialog.
Enter the Title and Label text inside the input dialog box as shown below
In the input dialog, the user inputs should be stored in a variable. As soon as you click on the input dialog box, in the property pane, you can see the properties, press
Ctrl+k in front of the result in the output section and create a variable called the number.
Now click on the variable pane you can see that the variable has been created and then set the variable type to Int32.
Next, add the flow decision activity inside the sequence, which helps us to take create a branch based on the True or False conditions. Click on the flow decision box and write the condition of your program.
To add the condition, as soon as you click on the flow decision box the property pane wizard will appear on the left corner of the UiPath Studio. If you feel like the condition window is small, just click on the three dots and write the condition of your program.
The condition to check the given number is even or odd and click on Ok button
Next, add the message box saying Even or Odd on either side as sown below
Now drag a line on each side and connect the even and odd message box to flow decision. The complete flowchart will look as shown below.
Now save the flowchart and run, the input pop box will appear, enter any number and click on Ok.
Once you click on ok, the output will be displayed as shown below.
You can create a loop so that whenever the output is odd it automatically ask again to enter the input until you get even as output. For this to happen you need not to write any while or do-while loop, all you just need to connect False message box to input dialog box as shown below.
Now save and run the flowchart and enter the number until you get even as output.
The following example demonstrates grade example by using a flowchart
Create a new flowchart by the name Flowchart example 2
Next, add the Input dialog activity and enter the title and the label as shown below and then connect the start and input dialog box.
Click on the input dialog and in the property pane, click
Ctrl+k in front of the result to create a variable called
grade, once it is done, just click on the input dialog box again and click on variable you can see that the variable has been created by the name called
grade and of a generic type.
Add the Flow Switch and connect input dialog and flow switch, Click on the flow switch and add the Type argument as String and expression as Grade in the property pane as shown below.
Add four message boxes, each one should contain a message as "Excellent", "Good", "Improve", "Failed" as shown below.
Change the display name of each message box so that it will be easy for us to identify the message box according to there grades. Click on each message box, in the property pane you can edit the name of the message box as A, B, C, and Default.
Now, connect the flow switch to each message box as shown below.
We are taking a grade from the input user
Athen it will print as Excellent
Bthen it will print as Good
Cthen it will print as Improve and
Instead of Case1 and case2, you can also change the there name to A, B, C by clicking on Case boxes and edit the name in the property pane. Now save the flowchart and run. Once the flow chart starts to execute, the input pop-up box will appear, enter the grade and click on Ok.
The out is as shown below