Commit Graph

99 Commits

Author SHA1 Message Date
Paula Quispe
e5d0258cc4 HOR-3773 2017-08-22 17:20:16 -04:00
dante
07f0a36aef First set of modifications 2017-08-11 11:10:27 -04:00
Ronald Quenta
917c94784b Merge remote-tracking branch 'origin/feature/HOR-3559' into feature/HOR-3629 2017-08-10 18:33:14 -04:00
Paula Quispe
c2c5d0e4ba HOR-3661 2017-08-10 15:50:36 -04:00
Ronald Quenta
651d22a71d up observations 2017-08-08 15:47:02 -04:00
Ronald Quenta
cc5fcb08bc change 2017-08-08 15:40:50 -04:00
Ronald Quenta
f92f4ad170 up observations 2017-08-08 15:15:39 -04:00
dev-ronald
519e9e477f HOR-3502 HOR-2043 2017-08-08 15:08:34 -04:00
davidcallizaya
44d60e96d9 HOR-3620
Fix PMSystem -> PmSystem since Processmaker is one word.
2017-08-04 11:49:43 -04:00
davidcallizaya
81149399da HOR-3610
Fix System class conflict.
2017-08-03 18:44:57 -04:00
Chloe Deguzman
5d3a4c073f HOR-2689 Removed instances of LoadSystem, LoadThirdParty 2017-08-03 17:34:55 -04:00
Chloe Deguzman
60efcf7ac7 HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once 2017-08-03 17:19:55 -04:00
Roly Rudy Gutierrez Pinto
39a18a2d96 HOR-3275 improvement 2017-05-24 11:26:13 -04:00
Roly Rudy Gutierrez Pinto
1802d3155b HOR-3005 2017-04-10 16:24:55 -04:00
qronald
0188c56590 check for plugins 2017-02-14 17:46:17 -04:00
qronald
1532d2af97 code style 2017-02-14 17:14:17 -04:00
qronald
d009cb462b code style 2017-02-14 17:12:38 -04:00
qronald
a9a1bd149e remove extend in action disable 2017-02-14 15:49:14 -04:00
qronald
d8f160cfa0 up observations 2017-02-14 15:23:41 -04:00
Paula V. Quispe
9b60fdb682 HOR-2282 2016-12-02 10:16:37 -05:00
Victor Saisa Lopez
6d9858d6d0 HOR-1738 "Change folder permissions in ProcessMaker" SOLVED
Issue:
    Change folder permissions in ProcessMaker
Cause:
    Nuevo requerimiento
Solution:
    Se cambio los permisos de los files and directories
2016-08-30 13:03:35 -04:00
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