Hi nikku,
It’s hard to provide my source code here, but the basic operation is if you create an exclusive gateway and have a default outgoing sequence flow edge and make it default, by default this element doesn’t contain the ‘name’ attribute, only ‘id’, ‘sourceRef’ and ‘targetRef’, however, if you ever tried put some condition on the edge, and then remove all characters which make the condition field empty. It looks like it is still bald edge which is the default outgoing edge of the gateway, but at this time the sequence flow element already contains the name attribute and the value is empty string.
One thing is I think at some time I ever used modeling.updateProperties(element, ‘name’, {value:value}), I think this might be the cause why this attribute appears, however, I didn’t find any way to remove the ‘name’ attribute after that. Sounds like modeling doesn’t has remove attribute function. So I think you might have any idea how to solve this problem.
Thanks