Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
workflows function expression
#10
First, why not just use coreBOS native workflow expressions? You should be able to do everything you need directly there. We haven't been doing custom functions for a long time and the ones we do are REALLY specific and complex things or situations where we want to optimize speed. The workflow language should be powerful enough to do the calculations you need.

I'd say the function is incorrect because you have two different offsets including files:

include '../config.inc.php';
require_once 'include/database/PearDatabase.php';

one of those has to be wrong, because either you are in a subdirectory and can "go up one" to get config.inc in which case the include PearDatabase is going to fail, or you are at the top directory where the code will find Peardatabase but not config.inc

A few notes:

- load vtlib/Vtiger/Module.php, which will load everything you need
- save your logs in the logs directory: it is a security issue to leave them lying around anywhere that they can get downloaded from the internet, the logs director is protected (if you have your apache correctly configured)
Joe
TSolucio
Reply


Messages In This Thread
RE: workflows function expression - by joebordes - 02-16-2021, 10:04 AM
RE: workflows function expression - by joebordes - 02-16-2021, 10:32 AM
RE: workflows function expression - by joebordes - 02-16-2021, 10:07 PM
RE: workflows function expression - by joebordes - 02-16-2021, 10:08 PM
RE: workflows function expression - by joebordes - 07-23-2021, 11:12 AM
RE: workflows function expression - by joebordes - 07-23-2021, 11:08 PM
RE: workflows function expression - by joebordes - 07-25-2021, 09:55 AM
RE: workflows function expression - by gtccabs - 07-25-2021, 05:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)