Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#795568
Hi,

I write two simple trigger like these in processmaker 3.2 :
Code: Select all
Trigger1:
function test_func(){
	do any thing with long time ...
}

Trigger2:
test_func();

I set these triggers before my dynaform. My function (test_func) get more than five minutes for execute and I set max_execution_time = 1800 for example.

When I run case "test_func" function execute more than one time and it will continue to set max_execution_time and to stop php.
Please help if I do wrong thing or if it is an error in processmaker.

Thanks
#795578
Functions defined in one trigger can't be called by another trigger. If you have a library of functions that you want to use, then you should create a PHP file and upload it in the Public Files of any process. Then you can import it with require_once("...") at the beginning of your trigger.
See: http://wiki.processmaker.com/3.2/Trigge ... blic_Files

You only need to import it in one process and then you can access it from any process.

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]