How to send an email when a task fails

1
0
-1

Hi experts,

I'm using CE 7.3.3 and I'd like to know how to send an email to an administrator when a task get into status failed.

I need that, after the email is sent, the task still remains in failed status to relaunch it afterwards.

Thanks a lot,
Jose.

1 answer

1
+1
-1
This one is the BEST answer!

I'll be honest this is very difficult to answer.

For example - what is an error?

Is it Wrong data, is it a failed connector, is it a problem with a third party (as you've seen in your similar question here.

The simple fact is you should actually design your process with failure in mind as well.

People do this unconsciously however a process must have it specified. Oh - this field is wrong I'll just fix it...vs this field is wrong crash/fail.

If wrong data then you have to restructure your inputs to make sure the data is clean before it gets to the process (validation etc.)

Connectors can throw a Error event which can then be used to do what you need

Third party issues are harder but similar to Connectors Throw an Error Event.

Processes should ALWAYS be built with failure in mind and then act on them. It's one part of BPM that is so often ignored with the end result that changes have to built very quickly to the design.

Is it possible to double the size of a simple process by adding Error Processing - Absolutely, but that's the cost of automation.

Have a look here
http://documentation.bonitasoft.com/?page=events#toc4

for more information on Error Event handling.

regards
Seán

PS: As this reply offers an answer your question, and if you like it, please Mark UP and/or as Resolved.

Testing
Notifications