Best way to execute a process definition on subscription failure?
I am trying to build a design in CSA v.4.5, which could be able to execute a certain flow on subscription failure. I wanted to consult with you on what would be the best way to achieve it? I will give an use case example to clarify my needs.
I have a design that deploys a vSphere VM, based on the OOTB design of vSphere VM deployment, but with additional resource offerings I created that configure the machine. The main resource offerings that do the deployment tasks are configured on the Server component. Some of the resource offerings are configured to terminate the subscription if the flows that are executed by the resource offerings fail. What I want is, if one of these flows fail and a subscription is terminated, to execute another flow, that possibly takes the error code and some properties that are defined on the Server component in the design, and execute a number of defined tasks (such as sending an Email, moving some files on a defined location etc).
Please advise on what would be the best way to approach this, hopefully without changing the flows in OO.