Hi everyone,
How can I ensure that workflows in Bubble execute step-by-step?
Should I use a trigger custom state?
Thanks in advance!
Take time to read this
Thanks, just read it. It doesn’t solve the problem but at least it explains why it doesn’t solve the poblem.
Yes we need to be able to order them based on numbers, like a little box underneath of course it needs to be a smart system that would respect result of step x type of necessary stuff , but we don’t , plus dev is not the same as live so , but bubbleboosts are here yay
If you use custom event, this should process in order. What is your issue?
Split them up with custom triggers.
Use Custom Events. Custom events must finish before any other actions are started in the workflow sequence of events.
Even if you wind up having 5 custom events for a “simple” workflow
That it doesn’t respect the order within the custom event. If Workflow A has a custom event (workflow B), A won’t continue until B has finished. But the steps withing the custom event (B) won’t be respected. I end up needing one custom event for each action (for those cases I need a step by step workflow).
Yes, but it’s a very messy solution.
Custom workflows is the best advise he could give you. And will also keep everything well organized and maintainable
Do you not have a way to chain the events? i.e. make step 2 conditional on step 1? Using the result of step 1 forces synchronous behaviour
We don’t have result of step on regular workflows sadly only after data type changes
As pointed out, custom events can work. Things to take note:
- Server side actions will always run as soon as it can regardless of where it is in a workflow.
- Client side actions like setting states run in order of the workflow (very very few niche situations where it doesn’t)
You can use “result of step X” to delay a server-side action but as soon as it has all that it needs, it will run. Note that this is not reflected when you run in debug step-by-step mode so don’t be fooled.
Custom events are considered client-side actions hence why custom events are the easiest way to ensure things run the way you want them to. You can have custom events return data if you want to be extra sure, but my two points still apply.
The other alternative is to use JavaScript with your own plugin or using Toolbox elements and actions but it will be a little more complex.
This topic was automatically closed after 70 days. New replies are no longer allowed.