In an Integration test I got the results that you expected. I installed my process engine plugin in the JBoss distribution and got a null pointer exception during startup. (see first attachment).
Then I realized that the dataFormatConfigurator can be placed in the same jar, so my concerns about maintainability got away.
I build some new JBoss modules with the smartics jboss modules maven plugin and installed it on my jboss server.
The server starts without error, after I disabled the json-jackson and xml-dom modules and replaced them by the dataformat-all module in the spin-plugin-module (see attachment).
But I try to start a process that creates a complex object in a service task and stores it to the process engine I got an other exception:
Caused by: org.camunda.bpm.engine.ProcessEngineException: Cannot find serializer for value 'Untyped value 'com.camunda.consulting.extendedSerializationProcess.ComplexDataObject@acc6cf9''.
at org.camunda.bpm.engine.impl.variable.serializer.DefaultVariableSerializers.findSerializerForValue(DefaultVariableSerializers.java:69)
at org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.setValue(VariableInstanceEntity.java:264)
at org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.create(VariableInstanceEntity.java:93)
Can you give me a hint, what's missing? In Junit test with the same DataFormatConfigurator, everything is fine.
Kind Regards, Ingo