Can we get more information about this and examples of the behavior impacted? How it worked before the change and now, after?
For added context, here was the update message:
Workflow engine improvements: when the condition evaluates to no, other properties aren’t calculated.
I think this means that if you have a condition on a workflow/step in a workflow, that it evaluates each item in a sequence. (For example, say you have a workflow with the following, two part, condition “When current user is logged in is yes and current user’s is_admin is no”. If the first part of the statement is false (ie. current user is not logged in, then Bubble would not bother with evaluating the second part).
Regardless, I’d also be interested in hearing more from the @Bubble team. (As well, based on my interpretation, if this only impacts run mode or if this has any impact on step-by-step mode).
What the change means is that before, when you had an action with a condition (‘current user is logged in’), even if the condition was true (the user wasn’t logged in), the properties of the action were still evaluated, which was could use some time and capacity.
From now on, the properties used to run the action will only be calculated if the condition evaluates to yes. For most workflows that won’t make a difference, but for long workflows with a lot of condition, things should be faster.
Idea: It'd be helpful to be able to re-order logic within conditions on actions
Question about 11/30/18 release (When the condition evaluates to no, other properties aren’t calculated)
This is nice. @emmanuel it also means that API calls are no longer invoked for the step with a false condition?
There is no difference between regular workflows and API events.
For API events, if the condition on the event isn’t met, the workflow won’t run at all, if a specific action in a workflow has a condition that evaluates to no, the action’s properties won’t be evaluated any more, and execution will go to the next action.
Thanks for the further explanation @emmanuel.
I meant to ask about API Connector calls inside the properties on a workflow step, I assume these are also not run now, with a false step condition?
Yes that’s right