How to extend vtiger expression for workflows?

146 Views Asked by At

how can I extend vtiger expression to have more function in a workflow?

What I found so far is to modify core files, which get updated probably on updates of vtiger

  • modules/com_vtiger_workflow/expression_engine/VTExpressionsManager.inc
  • modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc

so for me it is not clear what the best practice is if:

I do not want to modify the given files? e.g.

  • class extending (inheritance)
  • registering via database
  • or other ways?
1

There are 1 best solutions below

5
psauleda On

Maybe you can make a new .inc file with your code and call it from:

modules/com_vtiger_workflow/expression_engine/include.inc

Then in case that file get overwrited in an update, you only have to include again the require_once on the include.inc

No the cleanest way, but quick and easy. ;-)