Showing posts with label Gulliver. Show all posts
Showing posts with label Gulliver. Show all posts

Wednesday, January 2, 2013

Default interface of plugin on ProcessMaker


The newest plugins generated with the command
# ./gulliver  new-plugin  my_first_plugin

Are plugins what uses interfaces generated with ExtJs Framework inside, that when you active the plugin then tab "my_first_plugin - application1" is activated on your main menu, if you click on this option show it:


The interface is blank and without logo and without main menu  ...  :(

Wednesday, December 26, 2012

Create a new pluggin

1. Move to directory
root@Ubuntu:/opt/processmaker/gulliver# cd /opt/processmaker/workflow/engine/


2. Create the pluginroot@Ubuntu:/opt/processmaker/workflow/engine# ./gulliver new-plugin my_first_plugin
using DSN Connection 
creating plugin directory /opt/plugins/my_first_plugin
saved 395 bytes in file my_first_plugin/setup.xml [pluginSetup.xml]
saved 183 bytes in file my_first_plugin/messageShow.xml [pluginMessageShow.xml]
saved 3060 bytes in file my_first_plugin/config/schema.xml [pluginSchema.xml]
saved 2075 bytes in file my_first_plugin/config/propel.ini [pluginPropel.ini]
saved 2069 bytes in file my_first_plugin/config/propel.mysql.ini [pluginPropel.mysql.ini]
Change system logo [y/N]: N
Create an example Page [Y/n]: Y
saved 167 bytes in file my_first_plugin/menumy_first_plugin.php [pluginMenu]
saved 964 bytes in file my_first_plugin/my_first_pluginApplication.php [pluginApplication.php]
saved 45 bytes in file my_first_plugin/my_first_pluginApplication.html [pluginApplication.html]
saved 6542 bytes in file my_first_plugin/my_first_pluginApplication.js [pluginApplication.js]
saved 1519 bytes in file my_first_plugin/my_first_pluginApplicationAjax.php [pluginApplicationAjax.php]
Create new option in the menu of cases [Y/n]: Y
saved 2440 bytes in file my_first_plugin/menuCasesmy_first_plugin.php [pluginMenuCases]
saved 567 bytes in file my_first_plugin/my_first_pluginApplication2.php [pluginApplication2.php]
saved 45 bytes in file my_first_plugin/my_first_pluginApplication2.html [pluginApplication2.html]
saved 7615 bytes in file my_first_plugin/my_first_pluginApplication2.js [pluginApplication2.js]
saved 567 bytes in file my_first_plugin/my_first_pluginApplication3.php [pluginApplication3.php]
saved 45 bytes in file my_first_plugin/my_first_pluginApplication3.html [pluginApplication3.html]
saved 581 bytes in file my_first_plugin/my_first_pluginApplication3.js [pluginApplication3.js]
Create the Role 'PROCESSMAKER_MY_FIRST_PLUGIN' and
       the Permission 'PM_MY_FIRST_PLUGIN' [y/N]: N
Create external step for Processmaker [y/N]: N
Create an element for the Processmaker Dashboards [y/N]: N
Create a PmFunction Class for extending Processmaker [y/N]: N
saved 1024 bytes in file my_first_plugin.php [pluginMainFile]
saved 396 bytes in file my_first_plugin/class.my_first_plugin.php [pluginClass]


Your plugin is generated in directory /opt/plugins/my_first_plugin/

2.
Check the code generated

Enjoy the power of your curiosity.