Building Resilient Workflows That Don't Fail
In our work, we often design processes that can run for a long time. A common challenge arises when a person who needs to provide input is no longer with the organization. When Zenphi tries to send a notification to a suspended or deleted email address, the flow can error and stop.
There's a quick way to fix this for a (small number of) flowrun(s): create a Google Group using the old email address and add a substitute as a member. Retry the failed action will allow the flow to continue. This is a good recovery method, but it's better to prevent the failure in the first place.
You can build more resilient flows by using Zenphi's statemachine and subflow capabilities. Instead of directly sending a notification, the main flow starts a subflow. This subflow will try to send the message. If it fails, it will automatically ask the person who started the flow to provide an alternative email address. It will repeat this until a valid email is found.
This approach ensures your process doesn't halt due to an invalid email address. It is a perfect example of how Zenphi allows you to build truly robust and resilient automations for your organization.
I encourage you to explore using subflows to handle potential failures in your own processes. Let me know if you have any questions or would like to discuss how to apply this to your specific use cases.
We will share this subflow in the Miniflow Library