1.) Added gateway details while importing old processes (making it compatible with new processmap)

2.) Delete gateway
3.) Placing gateway properly when added below task and cleaned up task in flowmenu.
This commit is contained in:
girish
2011-01-27 14:51:13 +00:00
parent 4d9385f646
commit 5923296736
8 changed files with 113 additions and 23 deletions

View File

@@ -1396,6 +1396,27 @@ class processMap {
}
}
/*
* Delete a gateway
* @param string $sGatewayUID
* @return boolean
*/
function deleteGateway($sGatewayUID = '') {
try {
$oGateway = new Gateway ( );
if($oGateway->gatewayExists($sGatewayUID))
{
$oTasks = new Tasks ( );
$oTasks->deleteRoutesusingGateway($sGatewayUID);
$res = $oGateway->remove($sGatewayUID);
}
return;
} catch (Exception $oError) {
throw ($oError);
}
}
/*
* Add a new guide
* @param string $sProcessUID