PM-3459 "Se borra toda la configuracion de la tarea al sacarlo del pool" SOLVED

Issue:
    Se borra toda la configuracion de la tarea al sacarlo del pool
Cause:
    Al mover por ejemplo un activity del pool hacia afuera, se define esta accion como la creacion de un nuevo activity
Solution:
    Se considera un elemento como nuevo si realmente este no existe, si el elemento ya existia en un pool o fuera de este
    se lo considera como existente
This commit is contained in:
Victor Saisa Lopez
2015-09-04 17:50:40 -04:00
parent 24d20440ad
commit d918065e76

View File

@@ -1504,10 +1504,6 @@ class BpmnWorkflow extends Project\Bpmn
$activity = $bwp->getActivity($activityData["ACT_UID"]);
if ($activity["BOU_CONTAINER"] != $activityData["BOU_CONTAINER"]) {
$activity = null;
}
if ($forceInsert || is_null($activity)) {
if ($generateUid) {
//Generate and update UID
@@ -1554,10 +1550,6 @@ class BpmnWorkflow extends Project\Bpmn
$artifact = $bwp->getArtifact($artifactData["ART_UID"]);
if ($artifact["BOU_CONTAINER"] != $artifactData["BOU_CONTAINER"]) {
$artifact = null;
}
if ($forceInsert || is_null($artifact)) {
if ($generateUid) {
//Generate and update UID
@@ -1609,10 +1601,6 @@ class BpmnWorkflow extends Project\Bpmn
$gateway = $bwp->getGateway($gatewayData["GAT_UID"]);
if ($gateway["BOU_CONTAINER"] != $gatewayData["BOU_CONTAINER"]) {
$gateway = null;
}
if ($forceInsert || is_null($gateway)) {
if ($generateUid) {
//Generate and update UID
@@ -1687,10 +1675,6 @@ class BpmnWorkflow extends Project\Bpmn
$event = $bwp->getEvent($eventData["EVN_UID"]);
if ($event["BOU_CONTAINER"] != $eventData["BOU_CONTAINER"]) {
$event = null;
}
if ($forceInsert || is_null($event)) {
if ($generateUid) {
//Generate and update UID
@@ -1737,10 +1721,6 @@ class BpmnWorkflow extends Project\Bpmn
$dataObject = $bwp->getData($dataObjectData["DAT_UID"]);
if ($dataObject["BOU_CONTAINER"] != $dataObjectData["BOU_CONTAINER"]) {
$dataObject = null;
}
if ($forceInsert || is_null($dataObject)) {
if ($generateUid) {
//Generate and update UID
@@ -1787,10 +1767,6 @@ class BpmnWorkflow extends Project\Bpmn
$participant = $bwp->getParticipant($participantData["PAR_UID"]);
if ($participant["BOU_CONTAINER"] != $participantData["BOU_CONTAINER"]) {
$participant = null;
}
if ($forceInsert || is_null($participant)) {
if ($generateUid) {
//Generate and update UID