Maybe it’s a very basic question related with VariableScope
I have searched in Camunda Web or Forum without finding an answer.
Most of them are related with Java or JavaScript
After Tutorials I have started with basic workflows using Jython Script Task (Inline) and using SPIN for variables bigger than 4K
It works perfect using:
- execution.getvariable()
- execution.setvariable()
- json.loads()
- toString()
The problem that I have is when I introduce UserTask in between Script Tasks
Variable is mutated from type org.camunda.spin.impl.json.jackson.JacksonJsonNode
to java.util.LinkedHashMap
Some Log
I can’t recover variable content using toString() or other methods like iteritems()
Looking for in globals() a Dictionary in which I see it’s and Object
[DEBUG] T150.execution.globals()[‘xpcodes2’]={u’nodeType’: u’OBJECT’, u’value’: False, u’boolean’: False, u’number’: False, u’string’: False, u’object’: True, u’dataFormatName’: u’application/json’, u’array’: False, u’null’: False}
With the WorkFlow/Process Instance Paused I see in the Debug View the real content of the Variable. I have started to read about Transaction Boundaries and I don’t know if this is a consequence of VariableScope.
Thank you for your help