When I don't want delayed evaluation of conditions on an e-mail task - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: When I don't want delayed evaluation of conditions on an e-mail task (/showthread.php?tid=2443) |
When I don't want delayed evaluation of conditions on an e-mail task - Guido1982 - 10-20-2022 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. RE: When I don't want delayed evaluation of conditions on an e-mail task - joebordes - 10-30-2022 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 RE: When I don't want delayed evaluation of conditions on an e-mail task - Guido1982 - 10-31-2022 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'? RE: When I don't want delayed evaluation of conditions on an e-mail task - joebordes - 10-31-2022 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 RE: When I don't want delayed evaluation of conditions on an e-mail task - Guido1982 - 11-02-2022 Cool, that is exactly what you would expect. |