If you have divided your workflow into several steps with the module “Stage Set” and you want to add into your workflow another step where you want to display an error stage, all you need is the action “Stage Error” inside your workflow.
After opening your workflow process inside the “Flow” module, to add the action “Stage Error” inside the FLOW section:

Then the following screen will open:

