PM-939 "Support for Message-Event (Endpoints and Backend)"

- Se han implementado los siguientes Endpoints:
    GET    /api/1.0/{workspace}/project/{prj_uid}/message-event-definitions
    GET    /api/1.0/{workspace}/project/{prj_uid}/message-event-definition/{msged_uid}
    GET    /api/1.0/{workspace}/project/{prj_uid}/message-event-definition/event/{evn_uid}
    POST   /api/1.0/{workspace}/project/{prj_uid}/message-event-definition
    PUT    /api/1.0/{workspace}/project/{prj_uid}/message-event-definition/{msged_uid}
    DELETE /api/1.0/{workspace}/project/{prj_uid}/message-event-definition/{msged_uid}
- Se han implementado los metodos necesarios/requeridos para el backend
  del DESIGNER para esta nueva funcionalidad
This commit is contained in:
Victor Saisa Lopez
2015-02-13 16:32:43 -04:00
parent 8b18dda574
commit b83718f295
32 changed files with 8344 additions and 58 deletions

View File

@@ -359,9 +359,11 @@ class WebEntryEvent
//Task
$task = new \Task();
$prefix = "wee-";
$this->webEntryEventWebEntryTaskUid = $task->create(
array(
"TAS_UID" => \ProcessMaker\Util\Common::generateUID(),
"TAS_UID" => $prefix . substr(\ProcessMaker\Util\Common::generateUID(), (32 - strlen($prefix)) * -1),
"PRO_UID" => $projectUid,
"TAS_TYPE" => "WEBENTRYEVENT",
"TAS_TITLE" => "WEBENTRYEVENT",
@@ -765,6 +767,8 @@ class WebEntryEvent
throw new \Exception(\G::LoadTranslation("ID_REGISTRY_CANNOT_BE_UPDATED") . (($msg != "")? "\n" . $msg : ""));
}
} catch (\Exception $e) {
$cnn->rollback();
$this->deleteWebEntry($this->webEntryEventWebEntryUid, $this->webEntryEventWebEntryTaskUid);
throw $e;