PM 940 "ProcessMaker-MA "Email Server (endpoints)"" SOLVED

> ProcessMaker-MA "Email Server (endpoints)"

  - Se han implementado los siguientes Endpoints:
	GET    /api/1.0/{workspace}/email/paged?filter={filter}&start={start}&limit={limit}
	GET    /api/1.0/{workspace}/emails?filter={filter}&start={start}&limit={limit}
	GET    /api/1.0/{workspace}/email/{mess_uid}
	POST   /api/1.0/{workspace}/email
	POST   /api/1.0/{workspace}/email/test-connection
	PUT    /api/1.0/{workspace}/email/{mess_uid}
	DELETE /api/1.0/{workspace}/email/{mess_uid}

  - Se esta creando un 1er registro en la tabla EMAIL_SERVER, esto al ejecutar el comando "./processmaker upgrade".
  - El metodo "System::getEmailConfiguration()" recupera el EMAIL_SERVER por default, caso contrario trabajara como lo
    hacia anteriormente.

Merge branch 'master' of bitbucket.org:colosa/processmaker into PM-940

Conflicts:
	workflow/engine/config/schema.xml
	workflow/engine/data/mysql/schema.sql
This commit is contained in:
Luis Fernando Saisa Lopez
2014-12-12 15:13:53 -04:00
32 changed files with 3572 additions and 44 deletions

View File

@@ -973,8 +973,7 @@ class System
$arrayEmailServerDefault = $emailServer->getEmailServerDefault();
if (count($arrayEmailServerDefault) > 0) {
//Return
return $arrayDataEmailServerConfig = array(
$arrayDataEmailServerConfig = array(
"MESS_ENGINE" => $arrayEmailServerDefault["MESS_ENGINE"],
"MESS_SERVER" => $arrayEmailServerDefault["MESS_SERVER"],
"MESS_PORT" => (int)($arrayEmailServerDefault["MESS_PORT"]),
@@ -993,6 +992,9 @@ class System
"MESS_EXECUTE_EVERY" => "",
"MESS_SEND_MAX" => ""
);
//Return
return $arrayDataEmailServerConfig;
} else {
G::LoadClass("configuration");