Worked on saving Gateway in old processmap
This commit is contained in:
@@ -2422,7 +2422,7 @@ class processMap {
|
||||
$oGateway->remove($sGatewayUID);
|
||||
}
|
||||
//Getting Gateway UID after saving gateway
|
||||
if($sType != 'SEQUENTIAL' && $sGatewayUID == '')
|
||||
if($sType != 'SEQUENTIAL' && $sGatewayUID == '' && $sDelete == '1')
|
||||
{
|
||||
$oProcessMap = new processMap();
|
||||
$sGatewayUID = $oProcessMap->saveNewGateway($sProcessUID, $sTaskUID);
|
||||
@@ -2448,6 +2448,7 @@ class processMap {
|
||||
$oTask = new Task();
|
||||
$aTaskDetails = $oTask->load($sTaskUID);
|
||||
$aFields ['PRO_UID'] = $sProcessUID;
|
||||
$aFields ['TAS_UID'] = $sTaskUID;
|
||||
$aFields ['GAT_X'] = $aTaskDetails['TAS_POSX'] + $aTaskDetails['TAS_WIDTH']/2;
|
||||
$aFields ['GAT_Y'] = $aTaskDetails['TAS_POSY'] + $aTaskDetails['TAS_HEIGHT'] + 10;
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ try{
|
||||
$aAnnotations = json_decode ( $_POST['annotations'] );
|
||||
$aSubprocess = json_decode ( $_POST['subprocess'] );
|
||||
$fields = $oProcess->serializeProcess($idProcess);
|
||||
//$oData = unserialize($fields);
|
||||
$oData = unserialize($fields);
|
||||
$aRoutes = $oProcess->super_unique($aRoutes);
|
||||
$sOutput = '';
|
||||
$subProcesses = array();
|
||||
@@ -122,6 +122,7 @@ try{
|
||||
$routesArray = $oProcess->createGateways($routeTransitions,$endArray,$oData->routes,$numberRoutes,$idProcess,$taskHidden);
|
||||
$oData->routes = $routesArray;
|
||||
}
|
||||
|
||||
$oProcess->updateProcessFromDataXpdl($oData,$oData->tasks);
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
|
||||
@@ -275,6 +275,7 @@ try {
|
||||
G::LoadClass('tasks');
|
||||
$oTasks = new Tasks();
|
||||
$oTasks->deleteAllRoutesOfTask($oData->pro_uid, $oData->tas_uid);
|
||||
$oTasks->deleteAllGatewayOfTask($oData->pro_uid, $oData->tas_uid);
|
||||
}
|
||||
$oProcessMap->saveNewPattern($oData->pro_uid, $oData->tas_uid, $oData->next_task, $sType, $oData->delete);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user