How to catch error in a running process model?

We what to catch errors in a running process model, save the error in DB.

We also want to know when the PM halts, save something to DB, too.

  Discussion posts and replies are publicly visible