Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When I don't want delayed evaluation of conditions on an e-mail task
#1
I have this situation: When a salesorder is created, and is has a certain state: I want to send an e-mail. Now somewhere along the line, we made sure the 'evaluate conditions on delayed execution' checkbox is set by default when creating e-mail tasks. Now, this could potentially mean that I want to send an e-mail when the status is A upon creation of the salesorder, then someone changes it to B before the e-mail task runs, and the e-mail is not sent I guess?

Would I prevent this scenario by disabling the checkbox that enables condition evaluation on delayed execution? I remember we talked about this before, but can't remember the outcome.
Reply
#2
from what I understand:

https://github.com/tsolucio/corebos/blob/master/cron/modules/com_vtiger_workflow/com_vtiger_workflow.service#L75-L76

if you uncheck "evaluate conditions", the email will be sent no matter the state.
if it is checked and the state has changed, it will not be sent
Joe
TSolucio
Reply
#3
So basically, we don't have the option to say "send this e-mail when condition is true when the actual trigger happens", but can only evaluate conditions delayed? So that would mean we could expect e-mails to 'fall through the cracks'?
Reply
#4
then I didn't explain that correctly

if you do NOT mark the option to "reevaluate" the conditions, then when the workflow is triggered the conditions will be evaluated, if they are true, the email will be set on the queue and sent.

if you DO mark the option to "reevaluate" the conditions, then when the workflow is triggered the conditions will be evaluated, if they are true, the email will be set on the queue, and when it is time to be sent, the conditions will be evaluated again, if they are still true, the email will be sent, if they aren't the email will be trashed

HTH
Joe
TSolucio
Reply
#5
Cool, that is exactly what you would expect.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)