You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have variables of type 'list in my BPMN. When I use get_variable() method I'm getting a serialized Java object. How can I convert it to a python list ?
exemple :
On bpmn : my_var = [ "hello", "world" ]
In python external task workder:
print(task.get_variable('my_var')) => rO0ABXNyABNqYXZhLnV0aWwuQXJyYXlMaXN0eIHSHZnHYZ0DAAFJAARzaXpleHAAAAACdwQAAAACdAAHIndvcmxkInQAByJoZWxsbyJ4
Hi, I had a similar issue with a JSON variable that contains a list of object. I needed to disable the deserializeValues so that Camuda passed the value as a JSON string.
I have variables of type 'list in my BPMN. When I use get_variable() method I'm getting a serialized Java object. How can I convert it to a python list ?
exemple :
print(task.get_variable('my_var')) => rO0ABXNyABNqYXZhLnV0aWwuQXJyYXlMaXN0eIHSHZnHYZ0DAAFJAARzaXpleHAAAAACdwQAAAACdAAHIndvcmxkInQAByJoZWxsbyJ4
print(base64.b64decode(task.get_variable('my_var'))) => b'\xac\xed\x00\x05sr\x00\x13java.util.ArrayListx\x81\xd2\x1d\x99\xc7a\x9d\x03\x00\x01I\x00\x04sizexp\x00\x00\x00\x02w\x04\x00\x00\x00\x02t\x00\x07"world"t\x00\x07"hello"x'
The text was updated successfully, but these errors were encountered: