Page 1 of 1

Including class files in triggers

Posted: Mon Jul 26, 2021 11:42 am
by Paulomgalmeida
Hi!
I have a class Procedimento in a file located in public_html, Procedimento.php.
The class definition is:
class Procedimento
{
public int $uid = '26711093060fad17f87f5c8075678610';
}
In my trigger i've coded:
require_once('Procedimento.php');
$ADS = new Procedimento();
$uidADS = $ADS->uid;
This trigger is called when the case is created.
It does not work. It gives the message "Unable to start a case". and the case goes to Draft.
What is missing?
I'm using processmaker 3.5 on windows server.
Please help.
Thank you.

Paulo.

Re: Including class files in triggers

Posted: Sat Apr 02, 2022 4:16 am
by marceloayllon
Hello Paulomgalmeida ,

You could double check this part. public int $uid = '26711093060fad17f87f5c8075678610'; because it seems to me that you return it in INT entirety this string