i have a simple process, where I create variable of custom type via java delegate, then I want to read and update the variable via external task worker and as a last step I want to read the update made at step 2.
My service task at step 1 creates properly variable. I can see the variable in cockpit (bot serialized and deserialized). At step 2, inside the worker (spring with camunda-external-task-client) I can fetch the variable and update its values, however when I try to complete the external task with variable:
externalTaskService.complete(externalTask, Map.of( "TASK_BODY", taskBody ));
at this point the updated variable is saved into process, however it is no longer serialised and therefore can not be read at step 3 with error
SPIN-PLUGIN-01002 Fallback serializer cannot handle deserialized objects
What did I miss? why the value is no longer serialized once external task worker completes the task?
im using Camunda 7.1, camunda-engine-plugin-spin 7.16 and camunda-external-task-client 7.16