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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user