AnsweredAssumed Answered

Script Task exception serizlization

Question asked by esseti on Nov 11, 2014
Latest reply on Nov 19, 2014 by jbarrez
hello,
i've this script

var data =   new Array();
data[0]={"url":"ciao"};
execution.setVariable("data", data);

when executed, it raises and exception

Caused by: org.activiti.engine.ActivitiException: couldn't find a variable type that is able to serialize jdk.nashorn.internal.objects.NativeArray@71e1add8
   at org.activiti.engine.impl.variable.DefaultVariableTypes.findVariableType(DefaultVariableTypes.java:62)
   at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableInstance(VariableScopeImpl.java:378)
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.createVariableInstance(ExecutionEntity.java:1163)
   at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:297)
   at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:284)
   at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:264)
   at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:247)

Activiti 5.13

any idea?

Outcomes