Hi all, I have a question in regards to this UIPath DUMP question I came across on the internet.
Why is the answer for this question “State Machine” instead of Sequence, as I understand State machines is for more complex automations. I would have selected Sequence as the answer.
You need to collect employees data and send it by email as an Excel file.
What type of workflow is the most suitable for the final part, which adds the file attachment, formats the email, and sends it?
Thinking from a design perspective, and assuming your entire process is just those two actions, you want to isolate components (states), so you have a modular, easy-to-troubleshoot code. Therefore, a good option is to separate your ‘get data’ and your ‘process’ states so you can scale or reuse its components.
Hope this gives you some clarity. Happy automation !