Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Workflows trigger aftersave, but when in respect to other aftersaves?
#4
I've done some testing by writing the result of the query that gets all the event handlers to a file and inspecting that (include/events/VTEventTrigger.inc around line 98, variable $evtinfosbyname). The events are grouped by their type (aftersave, beforesave and so on), and then by their ID (column eventhandler_id in vtiger_eventhandlers). That means that the event with the lowest ID will be fired first. So if you want to fire something before the workflow aftersave kicks in (it has one of the lowest ID's since it is installed with the system) you need to create a custom workflow function and place it in a workflow. Basically every eventhandler you register will be fired in the order you register it, and always after the workflow has done its thing.
Reply


Messages In This Thread
RE: Workflows trigger aftersave, but when in respect to other aftersaves? - by Guido1982 - 12-12-2018, 04:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)