Hi Christian,
thank you very much for the quick response.
I’ve tried to set an ObjectValue instance with an instance of my Delegate Class, but now camunda is complaining about a missing serializer: Cannot find serializer for value 'ObjectValue
According to the docs camunda should be able to de-/serialize java objects out of the box…
Here’s my code:
ObjectValue customerDataValue = Variables.objectValue(new TestDelegate())
.serializationDataFormat(Variables.SerializationDataFormats.JAVA)
.create();
String instanceId = startProcessForContract(createdBy, "simple-timer-task", contractId, processVars);
runtimeService.setVariable(instanceId, "delegate", customerDataValue);
Cheers,
Andi