From 29c647c1561d338545b7eb563f97ac545ba16226 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Thu, 22 Nov 2018 11:26:42 +0100
Subject: [PATCH] Util lib other  static syntax

---
 process/Util_lib/process.js | 41 ++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 21 deletions(-)

diff --git a/process/Util_lib/process.js b/process/Util_lib/process.js
index 7f20d9d4e7c..50d9e699415 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
-- 
GitLab