Hey @Bindu, UiPath Studio provides Automated Workflow Designs which can be used to make visual workflow simple, intuitive and straight-forward without any programming knowledge. Workflow design is basically a group of components used to create any workflow in UiPath studio. Following are the components of it:
1. Layout Diagrams: UiPath offers these workflow diagrams for integrating activities into a working structure when developing a workflow file:
- Sequence: Sequences have a simple linear representation that flows from top to bottom and are best suited for simple scenarios when activities follow each other.
- Flowchart: Flowcharts offer more flexibility for connecting activities and thus they are best suited for showcasing decision points within a process.
- State Machine: State Machine can be seen as a flowchart with conditional arrows, called transitions. It enables a more compact representation of logic and is suitable for a standard high-level process diagram of transactional business process templates.
- Global Exception Handler: The Exception Handler is designed to be used in both small and large automation projects, for identifying execution errors and most importantly, determining the workflow behavior when such an error occurs.
2. Choices: Decision is another very important part of workflow design. It is the decision that enables the Robot to react differently in various conditions in data processing and application interaction. The followings are types of decisions we can implement in a workflow:
- If Activity: The If activity splits a sequence vertically and is perfect for short balanced linear branches. If activity has one statement and two conditions namely "Then" and "Else". "Then" condition would be executed if the statement is true, otherwise "Else" condition would be executed.
- Switch Activity: The switch activity based on the value of a specified expression enables us to select one choice among the given many multiple choices. It is also useful to categorize data according to a custom number of cases.
- Decision (Flow Decision): Flow decision or decision is an activity that executes one of the two branches, by default named TRUE or FALSE. Flow decision is basically equivalent to the If activity and can only be used in a Flowchart.
- Flow Switch: The Flow Switch activity selects the next node depending on the value of an expression. It splits the control flow into 3 or more branches and only 1 will gets executed.
3. Data: Data comes in two flavors when it comes to visibility and life cycle: arguments and variables. While the purpose of arguments is to pass data from one workflow to another, variables are bound to a container inside a single workflow file and can only be used locally.
4. Naming Convention: To give meaningful names, UiPath provides a naming convention which is recommended to follow.
Proper naming of activities, variables as well arguments reduce the effort to read and understand the project. −
Variables names must be in upper CamelCase. Example: FirstName, LastName etc.
Arguments should also be in upper CamelCase along with the prefix showing the type of argument. Example: in_FileName, out_FileName, io_DivideByZero etc.
The workflow name should have the verb that describes the working of the workflow. Example: TakeScreenshot, ProcessTranslation.