Will an 'update field' workflow task trigger workflows on the related record? - 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: Will an 'update field' workflow task trigger workflows on the related record? (/showthread.php?tid=1174) Pages:
1
2
|
Will an 'update field' workflow task trigger workflows on the related record? - Guido1982 - 07-23-2018 I think I've asked this before, but somewhere in a thread that I can't find anymore. So here's twice then: If I create a workflow task that updates a field on a related module, will that update in turn trigger the workflow system on the record to which that related field belongs? RE: Will an 'update field' workflow task trigger workflows on the related record? - Guido1982 - 07-23-2018 Apparently, it does not. I tried the following setup: A Timecontrol record updates a field on a related projecttask, then a projecttask updates a field on the parent project. Both are set to fire always, when creating a new record and editing an existing one. Saving the timecontrol record however does not update the parent project for the projecttask related to that timecontrol record. RE: Will an 'update field' workflow task trigger workflows on the related record? - joebordes - 07-24-2018 I'd say it doesn't and your second post seems to confirm that. I think that is on purpose to minimize the potential of infinite loops RE: Will an 'update field' workflow task trigger workflows on the related record? - Guido1982 - 07-24-2018 Yes, that would seem risky. I've now setup the 'middle' record to do a scheduled task, think that will do it. Maybe I'll investigate this further if I have some time. RE: Will an 'update field' workflow task trigger workflows on the related record? - Guido1982 - 08-28-2018 I see workflow tasks have a 'Launch workflows on related updates' checkbox now, so now we can choose this behaviour at will? That would be awesome! RE: Will an 'update field' workflow task trigger workflows on the related record? - joebordes - 08-28-2018 Yes, correct! That is what it is for. RE: Will an 'update field' workflow task trigger workflows on the related record? - Guido1982 - 08-28-2018 So we should be very careful when we do this, because if I trigger a task on an invoice that also triggers the workflow mechanism on a related salesorder, but that related salesorder has a task that updates a field on invoices and also triggers workflows on related reocrds, I could create an infinite loop. RE: Will an 'update field' workflow task trigger workflows on the related record? - joebordes - 08-28-2018 Absolutely. You HAVE to know what you are doing, and even then, it can get messy, but the feature was required for some use cases. RE: Will an 'update field' workflow task trigger workflows on the related record? - Guido1982 - 08-28-2018 I very much like the feature but as you said, even if you know what you are doing it could go horribly wrong. Especially if you have many workflows you can loose track of. RE: Will an 'update field' workflow task trigger workflows on the related record? - Guido1982 - 09-17-2018 Reading this over again, when we do end up in an infinite loop, is there some way we could kill the process? |