How to don't throw Ens.Alert for messages from a Business Operation
Hi all,
I have a rule to throw a message when there is an error. I want to prevent send the email if the origin of the error is the API to send the email
This is my rule
Now, If there is any error in any process, it works, but if there is an error in MyProduct.BO.SendEmail it is trying to send the error again, and it is a infinite loop.
Is there any way to check what is the origin and don't process if the origin is MyProduct.BO.SendEmail?
I've tried to set a condition in when node but it doesn't catch any property of Ens.AlertRequest
It doesn't work. I'm sure I'm not using the command correctly, so I'm asking for help.
What is the correct way to throw the message but not for MyProduct.BO.SendEmail?
Best regads,
Kurro Lopez
Hey Kurro.
You should be able to include the allowed source in the rule constraint:
Alternatively, you could add a rule above that looks like this:
Thanks Julian.
I thought that the rules were sequential, that is, if it met a rule, it was executed, regardless of the order.
So if a rule is met, it is executed and the "return" command causes it to exit the process.
Thanks for all.