Tips about learnig and remembering workflows

just need some tips on workflows

A few habits that help workflows stick:

  1. Name each workflow by its trigger and outcome, like “Save button is clicked - create order”, so your app reads like a list of events.

  2. Build one small thing end to end, such as a sign-up form that saves a user and sends a confirmation email, before moving on.

  3. Learn the order: trigger, conditions (“Only when”), then actions top to bottom. Most beginner bugs are a missing condition or a step that depends on data not saved yet.

  4. Use the debugger’s step-by-step mode to watch each action run, and write a one-line note on every workflow explaining why it exists. Your future self will thank you.

Use as many custom events as you possibly can and unify workflows.

Overlooked and perhaps more time consuming in the short run but it’ll save you huge amounts of time in the long run. I like to think of custom events as functions in JS.

I use emojis to categorize things. It helps with my organization when there is a lot going on. Like all of my Facebook workflows have a :blue_circle:. Etc. :blush: Hope that helps a bit.

Just break it down into simple steps, I always like to think of them as “if this happens” → “do that”

Don’t over complicate a single workflow, duplicate it into multiple ones that run on conditions you can rename the workflow on what it does.

Add notes if you have to, but honestly I only do it if it’s a really complicated one, otherwise the naming does the trick for me

A trick that helped me learn workflows faster is to think about the data first. Before building anything, sketch the things your app stores, such as a booking, a customer and a status, and write down which fields change at each step. Then every workflow becomes one question: what changes in the database when this event happens? Once you can answer that, the trigger and actions mostly fall into place. I also keep a status field on the main thing, like Requested, Confirmed or Cancelled, and make each workflow move it one step. It makes bugs easy to spot.

That is how I would frame it to my students. Especially those who struggled with concept.

same, I also like to explain database design using venn diagrams instead of tables