This post answers all your questions
It should be on the documentation.
General rules about how workflows run:
- Frontend workflow actions run in order but the next action does not wait on the previous action to be complete before triggering.
- Backend workflows are triggered as soon as the workflow is triggered, independently from steps. For example, a âSchedule API Workflowâ action will be triggered as soon as the workflow is triggered even if it is placed last in the workflow action sequence.
- Custom events run in sequence, not parallel. If Workflow 1 triggers a custom event that starts Workflow 2, Workflow 2 will complete before the remaining actions in Workflow 1 run.
- Searches arenât always immediately updated with new data. So if you create a new item, and then try to retrieve it via search, it may or may not work; you should not rely on this.
- Retrieving a thing from âresult of step Xâ where step X is the âCreateâŚâ step should always be safe.
Workarounds to help achieve workflow consistency:
- When a workflow trigger (eg. a button) can have multiple results based on conditions, it is safer to create multiple workflows and place the conditions at the workflow level instead of creating one workflow with all possible actions and placing the conditions at the action level.
- In a workflow with two actions, if Step 2 is using a condition based on a search depending on data manipulated in Step 1, then Step 1 should be implemented into a custom event to make sure it is finished before moving on to Step 2.
- If a backend workflow should be triggered after other steps in the workflow, then it should be implemented in a custom event placed after the steps that need to come first.
- The safest way to use data from one step to another is to use the âresult of step Xâ operators instead of searches.
- We do not offer the explicit ability for an action to wait for a workflow to be over before moving on to the next step; however, using âadd a pause before next actionâ action is usually an effective workaround.