Before the corresponding process (P2), I check a few rules in a business rule task using DMN (P1). As a result of P1 I get a list (Process P1 = Business Rule Task; Result Variable = “myOutput”, Map Decision Result = collectEntries).
In P2, a service task, I now want to use the result list from “myOutput” in an external task worker using node.js. In the Camunda Cockpit I can see that this variable is of type “Object”, the value is a “java.util.ArrayList” in Serialization Data Format = “application/x-java-serialized-object”.
Can someone explain how I can use this list in my external task worker? If I follow the example of the web page (const myOutput = task.variables.getTyped(‘myOutput’);), then I only get the serialized value of type “Object”. I don’t know how to deserialize it in node.js.
Since I haven’t found an entry elsewhere yet, the solution is probably obvious, but unfortunately I don’t see it.
Thank you for your help,
P.S.: Note: If I only have a single value in the output of P1 (Map Decision Result = singleResult), I get the deserialized value directly and can work with it. Only in case of “Map Decision Result = collectEntries” I get a serialized object.