PM-1953
0017021: ProcessMaker variable doesn't update properly Se desarrollo una funcion que pernita enviar los datos del caso en el que se trabaja
This commit is contained in:
@@ -2868,4 +2868,24 @@ function PMFRemoveMask ($field, $separator = '.', $currency = '')
|
||||
$field = floatval(trim($field));
|
||||
|
||||
return $field;
|
||||
}
|
||||
|
||||
/**
|
||||
*@method
|
||||
*
|
||||
* Sends an array of case variables to a specified case.
|
||||
*
|
||||
* @name PMFSaveCurrentData
|
||||
* @label PMF Save Current Data
|
||||
*
|
||||
* @return int | $result | Result of send variables | Returns 1 if the variables were sent successfully to the case; otherwise, returns 0 if an error occurred.
|
||||
*
|
||||
*/
|
||||
|
||||
function PMFSaveCurrentData(){
|
||||
$appUid = $_SESSION['APPLICATION'];
|
||||
global $oPMScript;
|
||||
$aData = $oPMScript->aFields;
|
||||
$result = PMFSendVariables($appUid, $aData);
|
||||
return $result;
|
||||
}
|
||||
Reference in New Issue
Block a user