Best way to be notified of errors in process?

  • 7 February 2012
  • 3 replies
  • 0 views

Badge +1

I'd like to be emailed or have the originator receive an email if the process fails at any point. What's the best way to implement error reporting via email?


Thanks!


3 replies

Badge +7

If you are developing k2 process from Visual Studio, you can enable exception rule on the Process level. In the exception rule (view code), implement codes to capture the error message and email out the error message.

Badge +8

Another possible solution is to, in the exception rules of your process, enable that the error be logged to the K2 server.  This way you can configure at the K2 server level to log error messages to the windows event viewer. Once the error messages are logging to the windows event viewer you can register a script that sends an email when a certain message is logged. There is an example script here: http://www.petri.co.il/forums/showthread.php?t=32283


You can also build your own custom logging target. By default K2 can log to a file, the event viewer, MSMQ, and SQL but it is possible for you to build a target that sends an email instead.


I hope this helps.


Regards,


Eric

Userlevel 4
Badge +14

refer to this thread.


http://k2underground.com/forums/p/14095/41622.aspx#41622


HTH


Vernon

Reply