Fixed gateway issue while importing

This commit is contained in:
safan
2011-02-19 12:12:50 +00:00
parent 6d4a2440b7
commit 42e284000e
4 changed files with 55 additions and 31 deletions

View File

@@ -3034,7 +3034,7 @@ class Processes {
$aRoutesUID = $this->createRouteRows($oData->routes);
$this->createLaneRows($oData->lanes);
if(!isset($oData->gateways)){
/*if(!isset($oData->gateways)){
//Adding gateway information while importing processes from older version
//Making compatible with old export process
$oRoutes = $oData->routes;
@@ -3046,7 +3046,7 @@ class Processes {
if($routeType != 'SEQUENTIAL')
{
$oProcessMap = new processMap();
$sGatewayUID = $oProcessMap->saveNewGateway($oData->process['PRO_UID'], $sTaskUID, $sNextTask);
$sGatewayUID = $oProcessMap->saveNewGateway($oData->process['PRO_UID'], $sTaskUID, $sNextTask, $routeType );
//Updating Route table (GAT_UID column) after inserting Gateway data into GATEWAY table
$aData = array('ROU_UID'=>$routeUID,'GAT_UID'=>$sGatewayUID);
@@ -3055,7 +3055,8 @@ class Processes {
}
}
}
else
else*/
if(isset($oData->gateways))
$this->createGatewayRows($oData->gateways);
$this->createDynaformRows($oData->dynaforms);