Page 1 of 1

How to include the gulliver php in REST API

Posted: Tue Jul 18, 2017 1:59 am
by jemiris
My Problem:
1. How to include the gulliver php in REST API

Issue:
Fatal error: Class 'ProcessMaker\Services\Api\G' not found in C:\Bitnami\processmaker-3.0\apps\processmaker\htdocs\workflow\engine\src\ProcessMaker\Services\Api\Project.php on line 239

Re: How to include the gulliver php in REST API

Posted: Tue Jul 18, 2017 9:29 pm
by amosbatto
What REST endpoint did you call to see this error or are you creating your own custom REST endpoint in a plugin?

If you need Gulliver, it is generally recommended to put your code in a trigger, then use the execute-trigger REST endpoint to execute that trigger. That way the whole PM environment is loaded.

Re: How to include the gulliver php in REST API

Posted: Wed Jul 19, 2017 12:55 am
by jemiris
Yeah thank you amobatto. :P