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 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 348 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/
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.
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.
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 43 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

Dear amosbatto and team i tried to fix this issue[…]

Hi Amos, as regards the line breaks, this always […]

routeCase SOAP API error

It is working now and we are able to route a case.[…]

Hello, since the update to Version 3.2.3 I have t[…]