Is it possible to define a user defined function in the context of a process and then invoke that function? I can see that it is possible in a DMN literal expression (and have tested it and it works), but I cannot get it working inside a process context. Here is what I am doing.
In my start event I have defined the following variable with the function defined:
I am then calling the function from a Script Task:
But when I run the process, the scriptResult
variable is null. So it looks like functions are not evaluated when in a process context?
Thanks in advance.