I can’t get the “Native XML Variable Value” on this page XML | docs.camunda.org to work.
When I follw the example as is I get: org.camunda.bpm.engine.ProcessEngineException: Cannot find serializer for value 'Value 'null ...
And when I add a “SpinXmlElement e = xmlValue.getValue();” before I set the variable to Camunda I get:
org.camunda.bpm.engine.ProcessEngineException: Cannot find serializer for value 'Value '<?xml version="1.0" encoding="UTF-8"?><customer xmlns="http:\/\/camunda.org/example" name="Jonny">
<address>
<street>12 High Street</street>
<postCode>1234</postCode>
</address>
</customer>
' of type 'xml', isTransient=false'.
at org.camunda.bpm.engine.impl.variable.serializer.DefaultVariableSerializers.findSerializerForValue(DefaultVariableSerializers.java:88) ~[camunda-engine-7.13.0.jar:7.13.0]
Additional Information:
I am in a User task, nit a delegate expression so I call:
runtimeService.setVariable(executionId, UNTERSCHRIFT_MITARBEITEREXTERN.getVariable(), xmlValue);
I double-checkt this inside a DelegateExpression - as the example suggest - and I get EXACTLY the same resut. I think something might be broken… Is there someone who can give me directions to find an issue tracker?
the error message implies that Spin is not correctly integrated into your project somehow.
If it were, the engine would be able to find a serializer for the XML value.
Thanks for your effort, but how to REGISTER spin in my Spring Boot App “correctly”… I did not find a hint how to do so.
Can you plese post a copy of your “vanilla” pom.xml here, for the only difference I see currently is, that I have the dependency to camunda-engine-cdi in addidtion…
To answer your question. No I do not see any of these in my log, which means you are right somehow… Only entries regarding spring are these:
2020-09-14 08:19:02.266 INFO 11568 — [ main] org.camunda.bpm.dmn.feel.scala : FEEL/SCALA-01001 Spin value mapper detected
2020-09-14 08:19:02.422 INFO 11568 — [ main] org.camunda.feel.FeelEngine : Engine created. [value-mapper: CompositeValueMapper(List(org.camunda.feel.impl.JavaValueMapper@13464828, org.camunda.spin.plugin.impl.feel.integration.SpinValueMapper@5c19baa5)), function-provider: org.camunda.bpm.dmn.feel.impl.scala.function.CustomFunctionTransformer@4a3d0a5e, configuration: Configuration(false)]