Hi - the default java serialization for variables is fine and preferrable - but is there some way to make camunda use for instance spin’s json feature if an result variable does not implement Serializable?
I want to call my plain Spring POJOs from BPMN via expressions to avoid polluting it with camunda api’s - so I don’t have the camunda api’s directly available for calling the type stuff (to set application/json).
So I wonder if
a default fallback for objects not implementing Serializable is possible, alternatively
if a object->json transformation can be defined to be called in the modelleling UI?
if the classes didn’t implement the Serializable interface, the engine will serialize the objects as json or xml automatically. The format depends on the first serializer which is found on the classpath. I’ve tried it by myself, the objects were serialized in XML.
Hm, I use the spring-boot default config (which sets java serialization as default) - but it seems to not be able to fall back to using json. I guess if I set application/json it will use it for all objects - including Serializable ones
I have set in application.yml default-serialization-format: “application/json”. My class does not implement Serializable interface. I got an error: “Cannot find serializer for value ‘ObjectValue’…”
Serialization as bytes: class implements serializable, default-serialization-format not set in application.yml but this is not what I want.