From 1ec83f6eccb7349260dbb8af2dace2e37fe02c8a Mon Sep 17 00:00:00 2001 From: "marcelo.cuiza" Date: Wed, 8 Apr 2015 13:10:35 -0400 Subject: [PATCH] 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 --- workflow/engine/classes/class.pmFunctions.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/workflow/engine/classes/class.pmFunctions.php b/workflow/engine/classes/class.pmFunctions.php index 634e9a222..281a181ae 100755 --- a/workflow/engine/classes/class.pmFunctions.php +++ b/workflow/engine/classes/class.pmFunctions.php @@ -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; } \ No newline at end of file