AnsweredAssumed Answered

CustomObjectType not storing value

Question asked by jorell on Feb 6, 2014
Latest reply on Feb 10, 2014 by frederikheremans1
I have created a custom object type for lists (ArrayList). I set these types in the process engine config as follows:

VariableType listType = new CustomObjectType("list", List.class);
List<VariableType> customVariableTypeLists = Lists.newArrayList(listType);

When I set a variable of this type, it the type gets stored correctly but the value is empty. I traced as far back as VariableInstanceEntity.create(String name, VariableType type, Object value) method. The name and type get set correctly. The ArrayList Object also gets stored as the cachedValue. But the database doesnt have the value and when try to get the variable from the execution its null (I do see the variable with the correct name in the execution's variable list).

Is there something special I need to do here. I couldnt find any documentation on this in the user guide or the forum so I had no sample to follow.
Thanks for your help.