Attribute extension with empty value [message #987117] |
Fri, 23 November 2012 15:41 |
David Moser Messages: 1 Registered: November 2012 |
Junior Member |
|
|
Hi,
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,
David
|
|
|
Powered by
FUDForum. Page generated in 0.03316 seconds