PM-1698 "Los procesos diseñados se guardan vacios despues de usar el Zoom " SOLVED
This commit is contained in:
@@ -1283,7 +1283,12 @@ 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) {
|
||||
//Activity
|
||||
|
||||
@@ -1316,6 +1321,7 @@ class BpmnWorkflow extends Project\Bpmn
|
||||
|
||||
$diagram["activities"][$i] = $activityData;
|
||||
$whiteList[] = $activityData["ACT_UID"];
|
||||
|
||||
}
|
||||
|
||||
$activities = $bwp->getActivities();
|
||||
@@ -1337,6 +1343,10 @@ 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) {
|
||||
//Artifact
|
||||
@@ -1397,6 +1407,10 @@ 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) {
|
||||
//Gateway
|
||||
@@ -1471,6 +1485,10 @@ 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) {
|
||||
//Event
|
||||
@@ -1527,6 +1545,10 @@ 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) {
|
||||
//Data
|
||||
@@ -1581,9 +1603,13 @@ class BpmnWorkflow extends Project\Bpmn
|
||||
$participantData = array_change_key_case($participantData, CASE_UPPER);
|
||||
unset($participantData["_EXTENDED"]);
|
||||
|
||||
$dataObject = $bwp->getParticipant($participantData["PAR_UID"]);
|
||||
$participant = $bwp->getParticipant($participantData["PAR_UID"]);
|
||||
|
||||
if ($forceInsert || is_null($dataObject)) {
|
||||
if ($participant["BOU_CONTAINER"] != $participantData["BOU_CONTAINER"]) {
|
||||
$participant = null;
|
||||
}
|
||||
|
||||
if ($forceInsert || is_null($participant)) {
|
||||
if ($generateUid) {
|
||||
//Participant
|
||||
|
||||
@@ -1609,7 +1635,7 @@ class BpmnWorkflow extends Project\Bpmn
|
||||
}
|
||||
|
||||
$bwp->addParticipant($participantData);
|
||||
} elseif (! $bwp->isEquals($dataObject, $participantData)) {
|
||||
} elseif (! $bwp->isEquals($participant, $participantData)) {
|
||||
$bwp->updateParticipant($participantData["PAR_UID"], $participantData);
|
||||
} else {
|
||||
Util\Logger::log("Update Participant ({$participantData["PAR_UID"]}) Skipped - No changes required");
|
||||
|
||||
Reference in New Issue
Block a user