diff --git a/process/Util_lib/process.js b/process/Util_lib/process.js index 7f20d9d4e7c5ca63d4c3d5459dcfeb5da1c4843d..50d9e699415079a74f6c2b40ed16f2d704314752 100644 --- a/process/Util_lib/process.js +++ b/process/Util_lib/process.js @@ -1459,25 +1459,24 @@ function CopyModuleUtils() } /** - * provides somehow static methods for special handling in JDito-Processes - * do not create an instance of this - * @class - */ -function ProcessHandlingUtil() -{ -} - -/** - * In onValidation-Process a local variable called "$local.value" is made available from kernel. - * It contains the entered value - the field contains the value only after successfull validation (vars.get("$field.Fieldname")). - * The onValidation-Process is running again before saving the entity, at this point there's "$local.value" varialbe no longer available, - * but the entered value now is the present one because the field has already been validated before. - * Otherwise a "variable not found" error would occur. - * - * @param {String} pFieldValue req value of the field onValidation-Process is executed ( e.g. vars.get("$field.Fieldname") ) - * @return {String} Field value for onValidation-Process - */ -ProcessHandlingUtil.getOnValidationValue = function(pFieldValue) -{ - return vars.exists("$local.value") ? vars.get("$local.value") : pFieldValue; +* provides somehow static methods for special handling in JDito-Processes +* do not create an instance of this +* @class +*/ +ProcessHandlingUtil = { + + /** + * In onValidation-Process a local variable called "$local.value" is made available from kernel. + * It contains the entered value - the field contains the value only after successfull validation (vars.get("$field.Fieldname")). + * The onValidation-Process is running again before saving the entity, at this point there's "$local.value" varialbe no longer available, + * but the entered value now is the present one because the field has already been validated before. + * Otherwise a "variable not found" error would occur. + * + * @param {String} pFieldValue req value of the field onValidation-Process is executed ( e.g. vars.get("$field.Fieldname") ) + * @return {String} Field value for onValidation-Process + */ + getOnValidationValue: function(pFieldValue) + { + return vars.exists("$local.value") ? vars.get("$local.value") : pFieldValue; + } } \ No newline at end of file