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.
User avatar
By amosbatto
If you want to create a custom trigger, then click on the "Create" button, instead of the "Wizard" button:
createNewTrigger.png (34.74 KiB) Viewed 971 times
Then, you can enter your own PHP code. Read the documentation on Triggers.

If you really want to add a new trigger wizard, then you will have to create a plugin to do that with a custom class.pmFunctions.php file.
See: ... mFunctions

For an example, see my extraFunctions plugin: ... Functions/
User avatar
By amosbatto
Glad to help when I can. The forum is the only way to get help for the Community Edition.
Clients with paid support contracts can talk to the support team on the phone.
User avatar
By amosbatto
You should create a new plugin as explained in the wiki.
Then, look at the extraFunctions/classes/class.pmFunctions.php file to understand the format to add new functions to the trigger wizard.
User avatar
By amosbatto
To add a icon, copy an image file to the workflow/engine/plugins/extraFunctions/public_html/ directory. If using a Linux system, make sure that the file is readable by all users. For example:

Then, edit the workflow/engine/plugins/extraFunctions/classes/class.pmFunctions.php file and set the header like this:
Code: Select all
 * Extra Functions
 * @class extraFunctions
 * @name Extra Functions
 * @icon /plugin/extraFunctions/Audit.png
 * @className class.extraFunctions.pmFunctions.php
Now the icon will appear next to the plugin's name in Trigger wizard:
iconForExtraFunctionsPlugin.png (7.66 KiB) Viewed 666 times

Note: Any files that you add to your plugin's public_html folder will accessible from the following URL in the web:
For example:
Code: Select all
Routing Rule

Hi All, I have a form which we have built, where f[…]

I filed a bug report about this: https://processma[…]

Dear Team, Here i am using processmaker rest ap[…]

I grepped the code and can only find "createC[…]