Commit Graph

78 Commits

Author SHA1 Message Date
SatoshiDark
40d78b67d0 ALF-14: Enable plugin triggers build script to include plugin changes 2016-08-03 15:27:58 -04:00
Victor Saisa Lopez
61dc644bfd HOR-1400 "Remove code scanner review for ProcessMaker plugins" SOLVED
Issue:
    Remove code scanner review for ProcessMaker plugins
Cause:
    Nuevo requerimiento de validacion
Solution:
    Se a incluido la validacion para los "Enterprise Edition Plugin"; donde se evita que el "Code Scanner" revise estos plugins
2016-07-14 12:16:12 -04:00
Gustavo Silva Saire
75a40ba9f6 Merged in satoshi_bruno/processmaker/ALF-16 (pull request #4434)
ALF-16: Function 'disable' from plugin does not execute
2016-07-01 16:53:56 -04:00
Gustavo Adolfo Cruz Laura
00a4022d6f HOR-1317: Adding support for plugin extensions for the granular import and export. 2016-06-29 11:57:33 -04:00
Julio Cesar Laura Avendaño
f810b6a622 Merged in mcuiza/processmaker/HOR-1101 (pull request #4420)
HOR-1101
2016-06-23 15:05:55 -04:00
SatoshiDark
d6afffd4aa ALF-16: Disable function from plugins fix 2016-06-20 14:31:51 -04:00
mcuiza
f4be06d7f2 HOR-1101: Batch reassignment
.

validacion USR_UID

correccion observacion

soporte multiple plugins
2016-06-17 12:15:29 -04:00
Julio Cesar Laura Avendaño
6de475b886 Merged in caleeli/processmaker/HOR-1254 (pull request #4376)
HOR-1254
2016-06-15 16:32:05 -04:00
davidcallizaya
5d0fc61985 HOR-1249 Plugin's end points routes aren't generated when disabling/enabling a plugin.
c Fix routes path
c Fix Fix class loader multiple classes
c Fix plugin.singleton serialization
2016-06-10 16:22:56 -04:00
davidcallizaya
2dd1306d4a HOR-1254 CLONE - Plugin REST service is not properly registered in a Windows server
c Fix replacement of path separator in a rest uri.
2016-06-08 15:50:24 -04:00
Roly Rudy Gutierrez Pinto
1447ea8b43 HOR-7 2016-01-25 11:33:17 -04:00
Roly Rudy Gutierrez Pinto
29e0b58b7c PM-4564 2016-01-05 16:56:28 -04:00
marcelo.cuiza
ee601563fd PM-4170: Importing a simplified designer process looses its type 2015-11-30 17:00:15 -04:00
marcelo.cuiza
4cd772c402 PM-4099: Add the possibility to Replace a custom 'New Case' menu
correccion de observaciones

correccion observaciones y mejoras

.
2015-11-19 18:27:33 -04:00
Julio Cesar Laura Avendaño
f756e50aae Merged in dheeyi/processmaker/PM-3000-b (pull request #2793)
PM-3000
2015-09-23 09:42:20 -04:00
dheeyi
4374dbdea7 PM-3000
0017474: El email FROM no respeta la configuración "Email configuration"(adicionar una nueva opcion en el plugin "actions by email")

Conflicts:

	workflow/engine/classes/model/ListInbox.php
2015-09-21 13:02:43 -04:00
Victor Saisa Lopez
e6ddb81319 PM-3193 "Prepare integration of new Valeo simplified designer in process list" SOLVED
Issue:
    Prepare integration of new Valeo simplified designer in process list
Cause:
    Nuevo requerimiento de funciones
Solution:
    > Se a implementado "DESIGNER: New options in menu" para los plugins; para lo cual se define
      en el archivo principal del plugin, lo siguiente (ejemplo):
          public function setup()
          {   ...
              $this->registerDesignerMenu(PATH_PLUGINS . "DemoDesignerMenu/classes/DesignerMenuDemoDesignerMenu.php");
              ...
          }
      El archivo "DesignerMenuDemoDesignerMenu.php" es una clase donde se define las nuevas opciones
      para el "Menu New" y "Context Menu"
    > Se a implementado "DESIGNER: Edit process" para los plugins; en el listado de procesos (esto en DESIGNER)
      al hacer doble-click en un proceso, se inicia el modulo para la edicion del proceso, esto tambien
      puede ser customizado en el plugin, para lo cual se debera realizar lo siguiente:
          - Cambiar en la Base de Datos el valor del campo PROCESS.PRO_TYPE por un nuevo tipo:
                * Ejemplo: PRO_TYPE = 'CPF_STANDARD_TPL'
          - Registrar un archivo JavaScript para el plugin, esto se define en el archivo principal del
            plugin (ejemplo):
                public function setup()
                {   ...
                    $this->registerJavascript("processes/main", "DemoDesignerMenu/MyJavaScript.js");
                    ...
                }
          - En el archivo "MyJavaScript.js" se debe definir la siguiente funcion:
                function CPF_STANDARD_TPLDesignerGridRowDblClick(...)
                {   ...
                }
          - Ejemplos de "PROCESS.PRO_TYPE" y la funcion "DesignerGridRowDblClick":
                * Ejemplo: PRO_TYPE = 'CPF-STANDARD-TPL' => function CPF_STANDARD_TPLDesignerGridRowDblClick(...)
                * Ejemplo: PRO_TYPE = 'CPF STANDARD TPL' => function CPF_STANDARD_TPLDesignerGridRowDblClick(...)
    > Se adjunta el plugin "DemoDesignerMenu-1.tar" como ejmplo
2015-09-21 10:18:44 -04:00
Julio Cesar Laura
0476ca2bba Cherry pick of PM-3193 to branch 3.0.1.4 2015-09-17 14:12:15 -07:00
Marco Antonio Nina Mena
71c7f7d127 Improvement install plugin interface Enterprise manager 2015-05-13 17:15:18 -04:00
erik
467a241887 Fixing rest api dispatching for plugins with camelcase names
- plugin camelcase names are supported now
- fix for bug when a requests like
    GET /plugin-erik/hello/world
    GET /plugin-nonExistsPlugin/hello/world
  was resolving and dispatching the same resource
2015-04-29 16:15:57 -05:00
Erik
c9a92b499c Merge branch 'master' into enable-rest-api-from-plugins 2015-04-28 08:12:34 -05:00
Erik
2a4b59f71f Some fixes to avoid status error 500 when it should return 404
- Another thing to consider, the right enabling/disabling feature must be placed as following:

    -----

    class erikPlugin extends PMPlugin
    {

      ...

      public function enable()
      {
          $this->enableRestService(true);
      }

      public function disable()
      {
          $this->enableRestService(false);
      }

    }
2015-04-28 08:12:04 -05:00
Victor Saisa Lopez
92b4b028be PM-2430 "Admin > Users > Authentication Sources > New: Se..." SOLVED
Issue:
    Admin > Users > Authentication Sources > New: Se muestra la opcion del plugin
    ldapAdvanced aun cuando este esta en estado "Disable" en el workspace
Cause:
    No se verifica si el plugin esta enabled/disabled
Solution:
    Se verifica si el plugin esta enabled/disabled
2015-04-24 12:45:30 -04:00
Erik
5f4bec79b0 main changes to enable register rest api endpoints from plugins
1. Enable rest api registering feature on main plugin file
  i.e, if I have a plugin named "erik", so we have a file named workflow/engine/plugins/erik.php
       and a folder workflow/engine/plugins/erik/
   - inside of setup method of plugin main class set: $this->enableRestService(true);

---- file: erik.php ----

class erikPlugin extends PMPlugin
{
  ...
  public function setup()
  {
    $this->registerMenu("processmaker", "menuerik.php");
    ...
    $this->enableRestService(true);  // <- this line enable Rest Service dispatching feature
  }
...

2. Create a folder: workflow/engine/plugins/erik/src/Services/Api/
   $ mkdir -p workflow/engine/plugins/erik/src/Services/Api/

3. Create a Restler class inside the folder created above
   i.e. creating a Hello class.

---- file: workflow/engine/plugins/erik/src/Services/Api/Hello.php -----

<?php
namespace Services\Api;
use Luracast\Restler\RestException;
use ProcessMaker\Services\Api;
use \ProcessMaker\Util;

/**
 * @protected
 */
class Hello extends Api
{
    /**
     * @url GET /world
     */
    public function world()
    {
        try {
            $hello = array(
                'message' => 'Hello world'
            );

            return $hello;
        } catch (\Exception $e) {
            throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
        }
    }
}

---------- end file ---------

4. Disable and enable the plugin named "erik" on ProcessMaker Admin Interface

5. Use the Rest Api defined inside the plugin
   you can access from a url something like that:
   format: http://<SERVER-ADDR>/api/1.0/<WORKSPACE>/plugin-<THE-PLUGIN-NAME>/hello/world

i.e.
   http://processmaker/api/1.0/workflow/plugin-erik/hello/world

Note.- to access this url that has the protected attribute into the class
       you need provide the access token into request header.
2015-04-20 22:49:51 -04:00
Erik
120f7fce14 main changes to enable register rest api endpoints from plugins
1. Enable rest api registering feature on main plugin file
  i.e, if I have a plugin named "erik", so we have a file named workflow/engine/plugins/erik.php
       and a folder workflow/engine/plugins/erik/
   - inside of setup method of plugin main class set: $this->enableRestService(true);

---- file: erik.php ----

class erikPlugin extends PMPlugin
{
  ...
  public function setup()
  {
    $this->registerMenu("processmaker", "menuerik.php");
    ...
    $this->enableRestService(true);  // <- this line enable Rest Service dispatching feature
  }
...

2. Create a folder: workflow/engine/plugins/erik/src/Services/Api/
   $ mkdir -p workflow/engine/plugins/erik/src/Services/Api/

3. Create a Restler class inside the folder created above
   i.e. creating a Hello class.

---- file: workflow/engine/plugins/erik/src/Services/Api/Hello.php -----

<?php
namespace Services\Api;
use Luracast\Restler\RestException;
use ProcessMaker\Services\Api;
use \ProcessMaker\Util;

/**
 * @protected
 */
class Hello extends Api
{
    /**
     * @url GET /world
     */
    public function world()
    {
        try {
            $hello = array(
                'message' => 'Hello world'
            );

            return $hello;
        } catch (\Exception $e) {
            throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
        }
    }
}

---------- end file ---------

4. Disable and enable the plugin named "erik" on ProcessMaker Admin Interface

5. Use the Rest Api defined inside the plugin
   you can access from a url something like that:
   format: http://<SERVER-ADDR>/api/1.0/<WORKSPACE>/plugin-<THE-PLUGIN-NAME>/hello/world

i.e.
   http://processmaker/api/1.0/workflow/plugin-erik/hello/world

Note.- to access this url that has the protected attribute into the class
       you need provide the access token into request header.
2015-04-20 15:37:36 -05:00
Paula V. Quispe
056784289a I solved all observation by Code Injection-Hight 2015-03-12 14:51:09 -04:00
Victor Saisa Lopez
9519916804 PM-1066 "Al actualizar PM 2.5.2.3 a 2.8 no se puede crear..." SOLVED
Issue:
    - PM-1066: Al actualizar PM 2.5.2.3 a 2.8 no se puede crear dashlets del advanced dashboard
    - PM-998: Review Batch routing en Enterprise Trial
Cause:
    Este problema es a causa de que cada plugin enterprise requiere
    que este cargado la clase "enterprisePlugin"
Solution:
    Se ha agregado un "require_once" para cargar clase "enterprisePlugin"
2014-12-08 11:44:54 -04:00
Victor Saisa Lopez
5234a8bf28 PM-404 "En la actualizacion de un plugin no se actualiza el singleton" SOLVED
Issue:
    Al modificar los atributos de un plugin, este cambio no se refleja en el archivo "plugin.singleton" de cada workspace
Cause:
    ProcessMaker no detecta cuando el archivo principal de un plugin es editado
Solution:
    Se ha añdo un nuevo comando, el mismo actualiza el archivo "plugin.singleton" en cada workspace, segun los
    atributos del plugin, el comando es el siguiente:
        $ ./gulliver update-plugin-attributes pluginName
2014-10-09 14:16:08 -04:00
Marco Antonio Nina
d5d50e724c PM-399 Las funcionalidades del enterprise ya no tiene SOLVED
- A validation was added when use plugin.singleton.
2014-09-25 16:55:16 -04:00
Marco Antonio Nina
ebd5f2e2ed Improvement enable plugin 2014-09-23 13:03:53 -04:00
Julio Cesar Laura Avendaño
e4e96bcb4f Merged in marcoAntonioNina/processmaker/PM-295 (pull request #812)
PM-295 Plugin Enterprise que sea parte del core IMPROVEMENT
2014-09-23 11:49:26 -04:00
Marco Antonio Nina
e4c334dd67 PM-295 Plugin Enterprise que sea parte del core IMPROVEMENT
- change redirect.
- A validation was add in enable plugin.
2014-09-23 11:39:10 -04:00
Marco Antonio Nina
48d963a033 BUG-15561 Cambiar el algoritmo o metodo de cifrado... SOLVED
- It don't have the functionality.
- A function was add in class bootstrap hasPassword.
- a function was add in class enterprise.
2014-09-22 09:58:50 -04:00
Marco Antonio Nina
f54433b89e PM-295 Plugin Enterprise que sea parte del core SOLVED
- PM-317	Analizar como, que y donde mover los files/code del enterprise.
- PM-318	Enterprise Traducible.
- PM-320	Hacer funcionar el administrador de plugins.
2014-09-19 10:21:18 -04:00
Brayan Osmar Pereyra Suxo
1d17893c90 Arreglo de cron 2014-07-01 16:13:46 -04:00
Erik Amaru Ortiz
4288d45b08 Fix For PHP 5.4.x compatibility when PMPluginRegstry singleton is loaded from serialized file 2014-03-20 12:32:29 -04:00
Erik Amaru Ortiz
9c8d66ef07 Adding adapters for Workflow->Bpmn and Bpmn->Workflow projects, and more updates & fixes 2014-02-05 17:29:28 -04:00
Erik Amaru Ortiz
2398200adf Merge branch 'master' of github.com:colosa/processmaker
Conflicts:
	workflow/engine/classes/class.plugin.php
	workflow/engine/classes/class.pluginRegistry.php
2013-12-03 18:23:12 -04:00
Erik Amaru Ortiz
5710710673 removing debug messages 2013-12-03 18:10:09 -04:00
Erik Amaru Ortiz
b25efdd866 Adding Rest Api Service Support
Rest Service on plugins
-----------------------

1. enable service

add the following line in plugin __constructor main class
$this->enableRestService(true);

2. Create the sources directory structure by example:
if you plugin is named myPlugin

myPlugin
    |--src
        |--Services
             |--Api
                 |--MyPlugin
                      |--Test.php

Where Test.php is a Restler class
2013-12-03 17:10:18 -04:00
Julio Cesar Laura
424e03d1b6 Add "getCronFiles" method to the plugin class and change cron_single file to execute old cron files and new registered cron files 2013-11-27 17:05:51 -04:00
Julio Cesar Laura
e97a04943f Add "registerCronFile" method to the plugin class 2013-11-25 13:01:30 -04:00
ralph
24be37fc1a Moving Language verification process from enablePlugin to import plugin file 2013-04-12 14:40:16 -04:00
Brayan Osmar Pereyra Suxo
c705cb8ba0 DOC SYSTEM
Crear en META-INF translation de plugin.
Al momento de habilitar un plugin, se revisara si cuenta con translations.php si cuenta con el archivo creara su .po y subira el archivo a META-INF.
-------------------------------------------
Workspace nace con configuracion de padre.
Ahora cuando se crea un nuevo workspace, nace con la configuracion Environment.
2013-04-08 16:48:03 -04:00
Fernando Ontiveros
b5c11b4198 SPEEDY first version of boostrap.php, with many changes 2012-11-12 14:44:44 -04:00
jennylee
cfbbf82f77 CODE STYLE, changes
FILES:
gulliver/system/class.database_mssql.php
gulliver/system/class.database_mysql.php
workflow/engine/classes/class.cli.php
workflow/engine/classes/class.pluginRegistry.php
workflow/engine/classes/entities/FacetGroup.php
workflow/engine/classes/entities/SolrUpdateDocument.php
workflow/engine/classes/triggers/class.pmTalendFunctions.php
workflow/engine/methods/appFolder/appFolderList.php
workflow/engine/methods/processes/processes_Ajax.php
2012-10-22 17:23:01 -04:00
norahmollo
e21cbdbaa6 CODE STYLE Format
Change format
2012-10-19 21:30:26 +00:00
Victor Saisa Lopez
ad0f709503 BUG 9697 "PM 2.0.43 testing 7/ Enterprise 2.0.16 Cuando se..." SOLVED
- When importing a plugin, the version does not register (when the
  plugin already exists)
- Problem solved, established the plugin version at register, if the
  plugin exists
* Available from version 2.0.45
2012-10-10 15:30:27 -04:00
Fernando Ontiveros
7f1d0fad9c CODE STYLE class.pluginRegistry.php 2012-10-09 12:55:14 -04:00
Erik Amaru Ortiz
9b74ddca00 PluginRegistry class fix, Adding missing unregister method 'unregisterRestService()' on disablePlugin() 2012-08-28 12:08:55 -04:00