10) Control Flow Overview

Control Flow is the order in which individual statementsinstructions or function calls are executed or evaluated in a software project.

There are 2 concepts through which the control flow is enacted:

The type of automation project

There are 4 predefined types of workflows – Sequence, Flowchart, State Machine and Global Exception Handler.

  • In sequences, the process steps flow in a clear succession. Decision trees are rarely used. Activities in sequences are easier to read and maintain, thus, they are highly recommended for simple, linear workflows.
  • In flowcharts, the individual activities are a bit more difficult to read and edit, but the flows between them are much clearer. Use flowcharts when decision points and branching are needed in order to accommodate complex scenarios, workarounds and decision mechanisms.

The control flow statements

The activities and methods used to define the decisions to be made during the execution of a workflow. The most common control flow statements are the if/else decision, the loops and the switch.  


More about Sequences
More about Flowcharts

No comments:

Post a Comment

Sequence and Flowcharts

  UiPath recommends that the first part of the Robot should start with Flowchart or Sequence. We can nest Sequence inside Sequence, Flowchar...