Fix Funcionalidad de lanes y lanesets para project

This commit is contained in:
Freddy Daniel Rojas Valda
2014-10-31 13:49:01 -04:00
parent 72dd59f6f0
commit 1bedf48b68
9 changed files with 92 additions and 31 deletions

View File

@@ -1083,6 +1083,22 @@ class Bpmn extends Handler
}
}
public function updateLane($lanUid, $data)
{
try {
self::log("Update Lane: $lanUid", "With data: ", $data);
$lane = LanePeer::retrieveByPk($lanUid);
$lane->fromArray($data);
$lane->save();
self::log("Update Lane Success!");
} catch (\Exception $e) {
self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
throw $e;
}
}
public function addLaneset($data)
{
// setting defaults
@@ -1148,6 +1164,23 @@ class Bpmn extends Handler
}
}
public function updateLaneset($lnsUid, $data)
{
try {
self::log("Update Laneset: $lnsUid", "With data: ", $data);
$laneset = LanesetPeer::retrieveByPk($lnsUid);
$laneset->fromArray($data);
$laneset->save();
self::log("Update Laneset Success!");
} catch (\Exception $e) {
self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
throw $e;
}
}
public function isModified($element, $uid, $newData)
{
$data = array();