...
double click on the block node, check off the checkbox next to atomic.
When a block node is atomic it stops executing further nodes if a failure is encountered. You can experiment with this by toggling it on or off, patching the graph and re-executing.
...
The graph should look similar to the screenshot below
We can test against two scenarios
...
Connect the other outcome to the original switch node. It should look like the screenshot below.
other outcomes function like a default case statement. When the customerName is not john and the customerName is not null the other outcome will execute.
...
The set node should be arranged so it executes early. Your graph should look similar to the graph below.
Double click the for node to edit it.
...
Your graph should look something like this
Now let's call it using this body
...