Page 1 of 1
how to add Create Predefined Trigger
Posted: Thu Sep 13, 2018 11:55 pm
by testmail
how to add Create Predefined Trigger . i'm beginer
Re: how to add Create Predefined Trigger
Posted: Fri Sep 14, 2018 1:07 am
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 4339 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:
https://wiki.processmaker.com/3.0/Plugi ... mFunctions
For an example, see my extraFunctions plugin:
https://sourceforge.net/p/pmcommunity/c ... Functions/
Re: how to add Create Predefined Trigger
Posted: Fri Sep 14, 2018 1:41 am
by testmail
thank you for example. i love you. some time i have problem how can contact u.
Re: how to add Create Predefined Trigger
Posted: Fri Sep 14, 2018 9:43 pm
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.
Re: how to add Create Predefined Trigger
Posted: Mon Sep 17, 2018 12:33 am
by testmail
how i make 2 plugin with your code Use your process, but change the name.
Re: how to add Create Predefined Trigger
Posted: Tue Sep 18, 2018 12:32 am
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.
Re: how to add Create Predefined Trigger
Posted: Thu Sep 20, 2018 12:41 am
by testmail
i can add Create Predefined Trigger but icon don't show
Re: how to add Create Predefined Trigger
Posted: Thu Sep 20, 2018 12:44 am
by testmail
@icon /plugin/extraFunctions/Huaweilogo.jpg this code
Re: how to add Create Predefined Trigger
Posted: Thu Sep 20, 2018 1:57 am
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:
workflow/engine/plugins/extraFunctions/public_html/Audit.png
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 4034 times
Note: Any files that you add to your plugin's public_html folder will accessible from the following URL in the web:
http:/{processmaker-ip-or-domain}/plugin/{plugin-name}/{path-to-file-in-public_html}
For example:
Code: Select allhttp://processmaker.example.com/plugin/extraFunctions/Audit.png