added the process context menu

This commit is contained in:
Erik Amaru Ortiz
2011-02-10 21:37:30 +00:00
parent b03e8cd2af
commit 64cbbe9027
6 changed files with 147 additions and 294 deletions

View File

@@ -73,6 +73,24 @@ class Processes {
$oProcess->Update( $proFields );
}
/**
* change debug mode of any Process
* @param string $sProUid
* @return boolean
* @package workflow.engine.ProcessMaker
*/
function changeDebugMode ( $sProUid = '') {
$oProcess = new Process();
$Fields = $oProcess->Load( $sProUid );
$proFields['PRO_UID'] = $sProUid;
if ( $Fields['PRO_DEBUG'] == '1' )
$proFields['PRO_DEBUG'] = '0';
else
$proFields['PRO_DEBUG'] = '1';
$oProcess->Update( $proFields );
}
/**
* changes in DB the parent GUID