Alerts on transaction group failure

Hi, I am Trying to generate alerts on transaction group failed to execute. The possible way I found is to use the handshake mechanism on failure to set the tag either zero or one .

Is it right way? Or is there any other way through achieve this.

To set handshake values for alerting the user: