Hi,
I never said the problem is with flowable. I just expressed that it would be helpful if flowable had some kind of support to handle the javascript json objects.
We are using the secure javascript until and so the rhino engine is at the background running the scripts.
As I understand, rhino parses the javascript objects inside the instance of a NativeObject. NativeObject by itself is Serializable(from doc). But because of some flowable secure javascript scope object reference, the serialization is failing. In this case it kind of seems a problem on the flowable end.
I’m sorry if I got anything wrong.
Hi @vamshichanda We are facing similar issue. Below issue
We are using SecureScriptExecutor for whitelisting java classes.
While trying to access a field of json variable in script task, we are getting undefined. Somehow rhino engine unable to execute variable having json type.
var student = execution.getVariable(“student”)//Here student is json type
execution.setVariable(“student_name”, student.name);//Here student_name is becoming undefined as rhino engine is unable to process json variable.