I have an activity that has some custom exceptions/errors defined (e.g ElementNotFound/ ElementNotActive/...) .
We know these errors could occur, and if they occur I would like to send eg. a mail. (Tomorrow I would perhaps like to send a teams message or trigger an error recovery flow).
Basically the activity "throws" the error but it's another "activity" that handles the error. Since the way the error is handled can change, I don't want to put it in the activity that "throws" the error.
It might be that some errors can be handled, eg Element Not active, activity activates the element and the process can continue.
On the other hand if some errors can't be handled (or no "error handler" is present) then the process should be stopped
What would be the best way to achieve this with process automation?
Hi Tim,
Considering the set of features currently available in PA, you have following options :
- you can set a flag in the process DOM and then check the state of that flag in a gateway following your activity
- you can throw in your script , this will set the token to a failed state and future activities will not be executed