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