Here you can find implementation of DECISIONS/CONDITIONS in the HELLO WORLD program
Steps:
1. Delete arrows between the Input Dialog
and the Message
Box activities
2. Add a Flow Decision activity between the Input Dialog
and the Message
Box activities
3. Select the Flow Decision activity and,
in the Properties panel, add a Condition to check if the variable
name is empty, such as name = "".
4. Connect the Input Dialog activity to
the Flow Decision. This means that after the user is prompted to add his
or her name, the condition added at step 3 is going to be checked.
5. Connect the True branch of the Flow
Decision activity to the Input Dialog. This means that if the name
field is empty, the user is going to be prompted to type his name in the Hello
World window until the field is filled in. You just created your first loop
6. Connect the Message Box activity
to the False
branch of the Flow Decision. This means that if the name field
is not empty, the Hello window can be displayed with the string added by the
user.
Final Project should be look like below:
What we learn from above Example
Ø Project can be stored based on user
preference either in User defined/ Default (%USERPROFILE%\Documents\UiPath)
location
Ø ‘main.xaml’ file is automatically created for every new
project which holds the entire workflow
Ø All other .xaml files included in
project have to be linked to ‘main.xaml’
file (Only ‘main.xaml’ file will
execute)
Ø .Screenshots folder holds
the screenshots for the respective program
Ø .project.json contains
information about Automation Project
Comments
Post a Comment
We appreciate your valuable Suggestions/Feedback