Understanding the workflow life cycle

Note:

This is a Developer level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customizations. We are unable to provide support for customizations under our Support Policy.

This reference describes how AutomateWoo processes an event-based workflow. It can help developers and store administrators investigate how a workflow moves from an event to its actions. The exact trigger checks depend on the trigger and its settings.

Life cycle of an event-based workflow

↑ Back to top

An event-based workflow starts with an event, such as an order being paid or a subscription being canceled. AutomateWoo handles some events asynchronously through Action Scheduler before the corresponding trigger evaluates them. This background event is separate from a workflow’s own timing.

  1. Find workflows: The trigger looks for workflows that use it and passes the event data to each one.
  2. Check eligibility: Each workflow checks that it is active and has the required data. It checks the trigger’s conditions and the workflow’s rules. If a check fails, the workflow does not proceed.
  3. Run or queue: A workflow set to run immediately proceeds to its actions. Other timing options create a queued event for the calculated date and time. Find queued items under AutomateWoo > Queue.
  4. Check a queued workflow: When the queued item runs, AutomateWoo checks that the workflow is active, required data is available, and the trigger’s queued-run checks pass. It also checks the workflow rules again if Revalidate rules before run is enabled. That option is enabled by default but can be disabled for a queued workflow.
  5. Run actions and record results: When the workflow runs, AutomateWoo runs its actions and records a log, except in test mode. Action errors can appear in the log. Find logs under AutomateWoo > Logs.
  6. Clean up: AutomateWoo resets temporary workflow context after processing. When tracking is enabled, later email or SMS activity may also be recorded for reports.

A queued workflow can fail before its actions run, for example if its required data is unavailable or its trigger checks no longer pass. For investigation steps, see Troubleshooting a workflow. Processing also depends on the site’s background scheduling and environment settings.

Related Products

Offer Royal Mail shipping rates to your customers.

Get shipping rates from the Canada Post Ratings API which handles both domestic and international parcels.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.