PM-1232 "fix. En IE no se visualiza correctamente la importacion de un proceso bpmn" SOLVED

This commit is contained in:
Freddy Daniel Rojas Valda
2015-01-16 14:49:35 -04:00
parent 92874f735f
commit f6be1d3580
2 changed files with 71 additions and 0 deletions

22
workflow/engine/classes/model/ProcessVariables.php Normal file → Executable file
View File

@@ -64,4 +64,26 @@ class ProcessVariables extends BaseProcessVariables {
throw($oError);
}
}
/**
* verify if process variable row specified in [sUid] exists.
*
* @param string $sUid the uid
*/
public function ProcessVariableExists($sUid)
{
$con = Propel::getConnection(ProcessVariablesPeer::DATABASE_NAME);
try {
$oObj = ProcessVariablesPeer::retrieveByPk($sUid);
if (is_object($oObj) && get_class($oObj) == 'ProcessVariables') {
return true;
} else {
return false;
}
} catch (Exception $oError) {
throw ($oError);
}
}
} // ProcessVariables