{"id":110955,"date":"2018-05-09T10:59:15","date_gmt":"2018-05-09T17:59:15","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-automate\/state-machines\/"},"modified":"2018-05-09T10:59:15","modified_gmt":"2018-05-09T17:59:15","slug":"state-machines","status":"publish","type":"power-automate","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-automate\/state-machines\/","title":{"rendered":"How to: State machines in Microsoft Flow"},"content":{"rendered":"

Read about how to build State Machines inside Microsoft Flow with this great post from Serge Luca<\/a>.<\/p>\n

Here is the (simplified) problem : A user creates a document in SharePoint. This document must be validated by a person called \u201cVal\u201d; when Val has validated the document, it must be validated by the \u201csecretariat\u201d; when this is done, it must be validated by the \u201cBoss\u201d; then the document will be signed by the boss (electronic signature) , transformed into PDF and published to external users. Of course the boss can reject the document and send it to the secretariat or to val; Val can also reject the document.<\/em><\/p>\n

Here is what I did :<\/p>\n