Id is not set when adding standardLoopCharacteristics element


#1

If I for example create a UserTask and add a “Loop” to it the XML element will be missing the Id attribute (which is required by the bpmn 2.0 schema)

How to reproduce:

  • Open online modeler https://demo.bpmn.io/new
  • Create a UserTask element and define a Loop
  • Select it, click the wrenck button and select “Loop”
  • Export the diagram as XML

The exported XML will be similar to this:

    <bpmn:userTask id="Task_0avodgd">
      <bpmn:incoming>SequenceFlow_13ovq7x</bpmn:incoming>
      <bpmn:standardLoopCharacteristics />
    </bpmn:userTask>

As you can see the “bpmn:standardLoopCharacteristics” element is missing the ID attribute. The same happens for the “multiInstanceLoopCharacteristics” element.


#2

How is it required by the BPMN 2.0 schema? Does XSD schema validation fail without it?


#3

Hmm I’ve made a mistake sorry… I see it actually isn’t required :slight_smile:

But when creating other elements they all seem to get an id. Is there any particular reason why the same is not true for this element?


#4

Because it is useless as far as I understand.

We tend not to generate stuff that no one needs.