fix for process definition variables to return correct data types

(cherry picked from commit 4937e3dbcc5ff15ff072a3afac8eaae280e8f93f)
BZ-1158817 - Old version process should not be enabled for user

(cherry picked from commit 8308629d20e5a595945e0837b706e27f31b4c8b1)