cancel
Showing results for 
Search instead for 
Did you mean: 

mai task disable when no configuration set

notallowed
Champ in-the-making
Champ in-the-making
Hello,

I have a problem. I have in my diagram some mail tasks. The problem is that sometimes the SMTP server is down. Is there a way to complete the tasks even the server is down? is there a way ti catch the exception thrown by the engine, in this case, and skip mail task?

Thx.
3 REPLIES 3

roig
Champ in-the-making
Champ in-the-making
why don't you just create a service task and send the mail from a Java delegate. Then you can catch the exception thrown.

notallowed
Champ in-the-making
Champ in-the-making
This was the workaround that i had in mind. But i hoped that there was an option in activiti engine.

riddhishah1604
Champ in-the-making
Champ in-the-making
Hi notallowed,

Did you got any other solution apart from the javadelegate one? Please let me know if you have any other..