AnsweredAssumed Answered

Attempting to store JavaScript objects to process variables fails

Question asked by andrewlecouteurbisson on Nov 26, 2014
Latest reply on Nov 27, 2014 by andrewlecouteurbisson
The following script task fails:
var structure = {
fred: 123,
bill: ['x', 'y', 'z'],
eric: { smoo: 'froob'}

It fails because findVariableType() in cannot locate an appropriate type for storage.
The returned value is a which seems to be opaque. The original Rhino type was org.mozilla.javascript.NativeObject which is Serializable and would therefore be handled automatically as a SerializableType in the Activiti engine.

Is there a simple way to allow this to work?  It seems like a fairly fundamental requirement so I assume someone must have investigated this.