We recently had a workunit fail on a useraction node because the user wasn't valid. The user had separated as an employee several years ago and was likely never setup as a useraction approver. The user had been selected by mistake by the user initiating the action. We'd like to get an email alert when this happen since it took a while for us to notice the issue.
Here's the error we received:
UserAction Approver1: Exception while executing this activity com.lawson.bpm.processflow.workFlow.flowGraph.UserActionConfigException: No valid users [] or tasks [] with valid users were found for assignment.
There isn't an on-error tab on the user action for me to easily alert if this failure occurs. What is a minimal effort solution to alert on a failure like this? Is there some other way to check if there were any errors on a flow and alert? Is there a function I'm not aware of where any "failed" workunits are alerted on? I'd like to avoid adding additional logic to test for/alert on the missing useraction user if there's an easier way.
Thanks,
Derek