Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

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.
By HeshanKaru1994
#826565
Is it a best practice to write all the business logic(javascript and trigger level php) inside a plugin and importing the plugin to the workspace? (So that the pmx file can be relatively small in size)
User avatar
By amosbatto
#826575
It depends on what kind of code you have. If you want to add PHP functions or PHP classes, then you can create a plugin that uses the option PMFunction class.

Then you can write triggers that calls the functions or classes that you added to the plugin. You can also add image files or other types of files to your plugin and access them with the URL:
http://{your-domain}/plugin/{pluginName}/{your directory}/{your-file}

All of this is a lot of work in my opinion. It is a lot easier to just include all your code and files in the process.
mysqli_free_result() error

Hello good afternoon I am having the same problem[…]

Thanks!

Hi, This user API https://wiki.processmaker.com/[…]

display pdf in panel control

Is there any solution?