|Attribute extension with empty value [message #987117]
||Fri, 23 November 2012 15:41
| David Moser
Registered: November 2012
We've been writing our own runtime, implementing some model extensions, at the moment just adding some attributes to UserTask.
The problem we have is that the attributes are always serialized to XML, even when they're empty. To be specific, the Xml is the following
<UserTask customNS:customAttr="" otherAttr="abc" ...>
but we want
<UserTask otherAttr="abc" ...>
i.e. the customAttr shouldn't be there at all, when the string field in the modeler is empty.
I've been looking at the example-runtime and the jbpm-runtime, but all model extensions I've seen set a non-empty default value.
Thanks for any help,
Powered by FUDForum
. Page generated in 0.01414 seconds