HOW TO RUN A FLOWCHART WITH TWO SEQUENCE


I have a project like, I created two sequence processes. If the website process has all been carried out successfully, then I want the robot to continue with the Excel template process.

But I click Run, the robot always processes the website sequence. When I open the Excel template process and try to run it, the robot always reads the website process.

how can it work properly?

Hi @Kia1

Try to run it in debug mode & add logs so that you will know till where your process is actually running. You can use slow step also in the debug mode to know the working of the current flowchart that you have build.

Hope this helps :slight_smile:

Hi @Kia1 ,

Run File - Will run the active file on the studio which is currently opened, if no file is opened it will run the file which is set as main for the project
image

Run Project - Will run the file which is set as main
image

To check which file is Set as main, you can navigate to the project Panel and check which xaml has the little Green arrow mark

If you want to set specific xaml has Main, then you can right click in the specific xaml which you want to change as main
And choose Set as main

Hope it helps you out

2 Likes

hi @Kia1

Is it a transactional process or a linear one?
If it’s a transactional one you need to keep a track of each transaction that it has completed Website or Template Excel or nothing in each row.

If it’s linear or just runs once a day, you can use a Asset, where you can use Get Asset activity and Set Asset Activity to track the status.
The Status can have Website, Template Excel, Nothing: one of these 3 values.

inside each of your sequence you can use an if condition, check the value and compare it with Website, if it matches that means its completed.
if it matches template excel that means it has completed the second sequence too.

Now the question on how and when to update the transaction or Asset,
it should be done just before your bot exits From Process Website.

Attaching the XAML for your reference.

Multiple process.xaml (11.9 KB)

Have a look at it.

You should be able to do it.

Happy Automation!

@Kia1,

Please have a look at basics of Flowchart from here. It’s very simple. Good luck!

Studio - Flowcharts (uipath.com)

Thanks,
Ashok :slight_smile: