Why bpmn2 namecpace changed to bpmn namespace?

Hi

In old version of bpmn-js, when I exported diagram as bpmn(xml), bpmn-js used:

xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" 

as xml namespace. In new version (special v5.0.4) when I exported diagram as bpmn(xml) bpmn2 namespace changed to:

xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" 

as xml namespace.

What’s different between this namespaces and why changed it?

Thank you for help me.

What version of the Camunda Modeler did export xmlns:bpmn2?

1 Like

I create own modeler with bpmn-js library and test between version 3 and 5

What diagram do you import after creating the modeler instance?

What I can tell you is that the prefix doesn’t matter as long as the namespace URI is correct. This is a valid diagram:

<?xml version="1.0" encoding="UTF-8"?>
<foo:definitions xmlns:foo="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:foodi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="Definitions_1vcmohr" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
  <foo:process id="Process_1l9cgt5" isExecutable="true">
    <foo:startEvent id="StartEvent_1" />
  </foo:process>
  <foodi:BPMNDiagram id="BPMNDiagram_1">
    <foodi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1l9cgt5">
      <foodi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="179" y="159" width="36" height="36" />
      </foodi:BPMNShape>
    </foodi:BPMNPlane>
  </foodi:BPMNDiagram>
</foo:definitions>

In old version when I import or export diagram I’ve this format

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" 
  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" 
  xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" 
  xmlns:ep="http://g.ir/?T:67AF:CJD?X1" 
  xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" 
  xmlns:di="http://www.omg.org/spec/DD/20100524/DI" 
  id="sample-diagram" 
  targetNamespace="http://bpmn.io/schema/bpmn" 
  xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:collaboration id="Collaboration_0czsqyr">    
    <bpmn2:participant id="Participant_0cyhvx8" processRef="Process_1" />
  </bpmn2:collaboration>
  <bpmn2:process id="Process_1" isExecutable="false">
    <bpmn2:laneSet id="LaneSet_0dz1dwx">
      <bpmn2:lane id="Lane_1amw7ib">        
        <bpmn2:flowNodeRef>StartEvent_1</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>EndEvent_07xvngt</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>Task_1mz19h8</bpmn2:flowNodeRef>
        <bpmn2:flowNodeRef>Task_0ycnjal</bpmn2:flowNodeRef>
      </bpmn2:lane>
    </bpmn2:laneSet>
    <bpmn2:startEvent id="StartEvent_1">
      <bpmn2:outgoing>SequenceFlow_1jvyfog</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_1jvyfog" sourceRef="StartEvent_1" targetRef="Task_1mz19h8">      
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="SequenceFlow_18vg0fq" sourceRef="Task_1mz19h8" targetRef="Task_0ycnjal">      
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="SequenceFlow_01koeq0" sourceRef="Task_0ycnjal" targetRef="EndEvent_07xvngt">      
    </bpmn2:sequenceFlow>
    <bpmn2:endEvent id="EndEvent_07xvngt">
      <bpmn2:incoming>SequenceFlow_01koeq0</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:serviceTask id="Task_1mz19h8">      
      <bpmn2:incoming>SequenceFlow_1jvyfog</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_18vg0fq</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:serviceTask id="Task_0ycnjal">
      <bpmn2:incoming>SequenceFlow_18vg0fq</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_01koeq0</bpmn2:outgoing>
    </bpmn2:serviceTask>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0czsqyr">
      <bpmndi:BPMNShape id="Participant_0cyhvx8_di" bpmnElement="Participant_0cyhvx8">
        <dc:Bounds x="48" y="-33" width="783" height="120" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1" bioc:stroke="#62a716" bioc:fill="#eeffbf">
        <dc:Bounds x="136" y="9" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="154" y="52" width="0" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_1amw7ib_di" bpmnElement="Lane_1amw7ib">
        <dc:Bounds x="78" y="-33" width="753" height="120" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1jvyfog_di" bpmnElement="SequenceFlow_1jvyfog" bioc:stroke="#62a716" bioc:fill="#eeffbf">
        <di:waypoint x="172" y="27" />
        <di:waypoint x="302" y="27" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="237" y="9" width="0" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_18vg0fq_di" bpmnElement="SequenceFlow_18vg0fq">
        <di:waypoint x="402" y="27" />
        <di:waypoint x="544" y="27" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="473" y="9" width="0" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_07xvngt_di" bpmnElement="EndEvent_07xvngt" bioc:stroke="#990000" bioc:fill="#f1bfbf">
        <dc:Bounds x="775" y="9" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="793" y="52" width="0" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_01koeq0_di" bpmnElement="SequenceFlow_01koeq0">
        <di:waypoint x="644" y="27" />
        <di:waypoint x="775" y="27" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="710" y="9" width="0" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ServiceTask_1845oh9_di" bpmnElement="Task_1mz19h8" bioc:stroke="#03689a" bioc:fill="#edf0ff">
        <dc:Bounds x="302" y="-13" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ServiceTask_0q939g2_di" bpmnElement="Task_0ycnjal" bioc:stroke="#03689a" bioc:fill="#edf0ff">
        <dc:Bounds x="544" y="-13" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>

And in new bpmn-js version (5), imported and exported diagram is

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_14ami3r" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="5.0.4">
  <bpmn:collaboration id="Collaboration_1g8aq1e">
    <bpmn:participant id="Participant_00880la" processRef="Process_1g5ic7z" />
    <bpmn:participant id="Participant_1n0lcef" processRef="Process_1ukud1e" />
    <bpmn:participant id="Participant_1w4pzg7" processRef="Process_1alt7ew" />
    <bpmn:messageFlow id="MessageFlow_18mt4j0" sourceRef="Task_1mtve21" targetRef="StartEvent_111hv99" />
    <bpmn:messageFlow id="MessageFlow_0w0ukpl" sourceRef="Task_1qir1fd" targetRef="Task_1noi934" />
    <bpmn:messageFlow id="MessageFlow_1ecar13" sourceRef="Task_1noi934" targetRef="StartEvent_08d59pz" />
    <bpmn:messageFlow id="MessageFlow_093dy7n" sourceRef="Task_0doyopc" targetRef="Task_1wfdm9j" />
  </bpmn:collaboration>
  <bpmn:process id="Process_1g5ic7z" isExecutable="false">
    <bpmn:laneSet id="LaneSet_0itj5e1">
      <bpmn:lane id="Lane_1up6i38">
        <bpmn:flowNodeRef>StartEvent_0qipa8r</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_1mtve21</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_1noi934</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_0pflpi4">
        <bpmn:flowNodeRef>Task_1wfdm9j</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>EndEvent_0kovk81</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="StartEvent_0qipa8r">
      <bpmn:outgoing>SequenceFlow_0na47xk</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_1mtve21">
      <bpmn:incoming>SequenceFlow_0na47xk</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1dp927t</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_1noi934">
      <bpmn:incoming>SequenceFlow_1dp927t</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1pvdixh</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_1wfdm9j">
      <bpmn:incoming>SequenceFlow_1pvdixh</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0dcyt0y</bpmn:outgoing>
    </bpmn:task>
    <bpmn:endEvent id="EndEvent_0kovk81">
      <bpmn:incoming>SequenceFlow_0dcyt0y</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="SequenceFlow_0na47xk" sourceRef="StartEvent_0qipa8r" targetRef="Task_1mtve21" />
    <bpmn:sequenceFlow id="SequenceFlow_1dp927t" sourceRef="Task_1mtve21" targetRef="Task_1noi934" />
    <bpmn:sequenceFlow id="SequenceFlow_1pvdixh" sourceRef="Task_1noi934" targetRef="Task_1wfdm9j" />
    <bpmn:sequenceFlow id="SequenceFlow_0dcyt0y" sourceRef="Task_1wfdm9j" targetRef="EndEvent_0kovk81" />
  </bpmn:process>
  <bpmn:process id="Process_1ukud1e">
    <bpmn:startEvent id="StartEvent_111hv99">
      <bpmn:outgoing>SequenceFlow_1g5i1a7</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_1qir1fd">
      <bpmn:incoming>SequenceFlow_1g5i1a7</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_07nq6em</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_0xzsy8h</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_11e31ik">
      <bpmn:incoming>SequenceFlow_07nq6em</bpmn:incoming>
    </bpmn:task>
    <bpmn:task id="Task_0xycs9y">
      <bpmn:incoming>SequenceFlow_0xzsy8h</bpmn:incoming>
    </bpmn:task>
    <bpmn:sequenceFlow id="SequenceFlow_1g5i1a7" sourceRef="StartEvent_111hv99" targetRef="Task_1qir1fd" />
    <bpmn:sequenceFlow id="SequenceFlow_07nq6em" sourceRef="Task_1qir1fd" targetRef="Task_11e31ik">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"></bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="SequenceFlow_0xzsy8h" sourceRef="Task_1qir1fd" targetRef="Task_0xycs9y">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"></bpmn:conditionExpression>
    </bpmn:sequenceFlow>
  </bpmn:process>
  <bpmn:process id="Process_1alt7ew">
    <bpmn:laneSet id="LaneSet_1kg7q4q">
      <bpmn:lane id="Lane_0m8gi8q">
        <bpmn:flowNodeRef>StartEvent_08d59pz</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_1xlf0by</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_0t2dqge">
        <bpmn:flowNodeRef>Task_1a9gsxe</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_0rmjh2m</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_17u533k</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_0doyopc</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>EndEvent_0eg0b3f</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_11lvhrv">
        <bpmn:flowNodeRef>Task_1a9gsxe</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_0rmjh2m</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_0d72bui">
        <bpmn:flowNodeRef>Task_17u533k</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_0doyopc</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>EndEvent_0eg0b3f</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="StartEvent_08d59pz">
      <bpmn:outgoing>SequenceFlow_0yws7tp</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_1xlf0by">
      <bpmn:incoming>SequenceFlow_0yws7tp</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1ckq28i</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_1a9gsxe">
      <bpmn:incoming>SequenceFlow_1ckq28i</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1ifyq4k</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_0rmjh2m">
      <bpmn:incoming>SequenceFlow_1ifyq4k</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1k1o7or</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_17u533k">
      <bpmn:incoming>SequenceFlow_1k1o7or</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_16muykh</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_0doyopc">
      <bpmn:incoming>SequenceFlow_16muykh</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1dy3a0s</bpmn:outgoing>
    </bpmn:task>
    <bpmn:endEvent id="EndEvent_0eg0b3f">
      <bpmn:incoming>SequenceFlow_1dy3a0s</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="SequenceFlow_0yws7tp" sourceRef="StartEvent_08d59pz" targetRef="Task_1xlf0by" />
    <bpmn:sequenceFlow id="SequenceFlow_1ckq28i" sourceRef="Task_1xlf0by" targetRef="Task_1a9gsxe" />
    <bpmn:sequenceFlow id="SequenceFlow_1ifyq4k" sourceRef="Task_1a9gsxe" targetRef="Task_0rmjh2m" />
    <bpmn:sequenceFlow id="SequenceFlow_1k1o7or" sourceRef="Task_0rmjh2m" targetRef="Task_17u533k" />
    <bpmn:sequenceFlow id="SequenceFlow_16muykh" sourceRef="Task_17u533k" targetRef="Task_0doyopc" />
    <bpmn:sequenceFlow id="SequenceFlow_1dy3a0s" sourceRef="Task_0doyopc" targetRef="EndEvent_0eg0b3f" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1g8aq1e">
      <bpmndi:BPMNShape id="Participant_00880la_di" bpmnElement="Participant_00880la" isHorizontal="true">
        <dc:Bounds x="160" y="351" width="760" height="250" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0qipa8r">
        <dc:Bounds x="216" y="392" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_1n0lcef_di" bpmnElement="Participant_1n0lcef" isHorizontal="true">
        <dc:Bounds x="160" y="80" width="760" height="250" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_1w4pzg7_di" bpmnElement="Participant_1w4pzg7" isHorizontal="true">
        <dc:Bounds x="160" y="620" width="938" height="350" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1mtve21_di" bpmnElement="Task_1mtve21">
        <dc:Bounds x="330" y="370" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0na47xk_di" bpmnElement="SequenceFlow_0na47xk">
        <di:waypoint x="252" y="410" />
        <di:waypoint x="330" y="410" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="StartEvent_08d59pz_di" bpmnElement="StartEvent_08d59pz">
        <dc:Bounds x="212" y="682" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1xlf0by_di" bpmnElement="Task_1xlf0by">
        <dc:Bounds x="330" y="660" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0yws7tp_di" bpmnElement="SequenceFlow_0yws7tp">
        <di:waypoint x="248" y="700" />
        <di:waypoint x="330" y="700" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="StartEvent_111hv99_di" bpmnElement="StartEvent_111hv99">
        <dc:Bounds x="222" y="142" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1qir1fd_di" bpmnElement="Task_1qir1fd">
        <dc:Bounds x="336" y="120" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1g5i1a7_di" bpmnElement="SequenceFlow_1g5i1a7">
        <di:waypoint x="258" y="160" />
        <di:waypoint x="336" y="160" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_18mt4j0_di" bpmnElement="MessageFlow_18mt4j0">
        <di:waypoint x="380" y="370" />
        <di:waypoint x="380" y="274" />
        <di:waypoint x="240" y="274" />
        <di:waypoint x="240" y="178" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_1noi934_di" bpmnElement="Task_1noi934">
        <dc:Bounds x="530" y="370" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1dp927t_di" bpmnElement="SequenceFlow_1dp927t">
        <di:waypoint x="430" y="410" />
        <di:waypoint x="530" y="410" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_0w0ukpl_di" bpmnElement="MessageFlow_0w0ukpl">
        <di:waypoint x="436" y="190" />
        <di:waypoint x="570" y="190" />
        <di:waypoint x="570" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_1ecar13_di" bpmnElement="MessageFlow_1ecar13">
        <di:waypoint x="580" y="450" />
        <di:waypoint x="580" y="566" />
        <di:waypoint x="230" y="566" />
        <di:waypoint x="230" y="682" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_1wfdm9j_di" bpmnElement="Task_1wfdm9j">
        <dc:Bounds x="640" y="500" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1pvdixh_di" bpmnElement="SequenceFlow_1pvdixh">
        <di:waypoint x="630" y="410" />
        <di:waypoint x="690" y="410" />
        <di:waypoint x="690" y="500" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0kovk81_di" bpmnElement="EndEvent_0kovk81">
        <dc:Bounds x="852" y="522" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0dcyt0y_di" bpmnElement="SequenceFlow_0dcyt0y">
        <di:waypoint x="740" y="540" />
        <di:waypoint x="852" y="540" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Lane_1up6i38_di" bpmnElement="Lane_1up6i38" isHorizontal="true">
        <dc:Bounds x="190" y="351" width="730" height="125" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_0pflpi4_di" bpmnElement="Lane_0pflpi4" isHorizontal="true">
        <dc:Bounds x="190" y="476" width="730" height="125" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_11e31ik_di" bpmnElement="Task_11e31ik">
        <dc:Bounds x="730" y="120" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_07nq6em_di" bpmnElement="SequenceFlow_07nq6em">
        <di:waypoint x="436" y="140" />
        <di:waypoint x="730" y="140" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_0xycs9y_di" bpmnElement="Task_0xycs9y">
        <dc:Bounds x="730" y="230" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0xzsy8h_di" bpmnElement="SequenceFlow_0xzsy8h">
        <di:waypoint x="436" y="160" />
        <di:waypoint x="580" y="160" />
        <di:waypoint x="580" y="270" />
        <di:waypoint x="730" y="270" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Lane_0m8gi8q_di" bpmnElement="Lane_0m8gi8q" isHorizontal="true">
        <dc:Bounds x="190" y="620" width="908" height="125" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_0t2dqge_di" bpmnElement="Lane_0t2dqge" isHorizontal="true">
        <dc:Bounds x="190" y="745" width="908" height="225" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_11lvhrv_di" bpmnElement="Lane_11lvhrv" isHorizontal="true">
        <dc:Bounds x="220" y="745" width="878" height="115" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_0d72bui_di" bpmnElement="Lane_0d72bui" isHorizontal="true">
        <dc:Bounds x="220" y="860" width="878" height="110" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1a9gsxe_di" bpmnElement="Task_1a9gsxe">
        <dc:Bounds x="330" y="760" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1ckq28i_di" bpmnElement="SequenceFlow_1ckq28i">
        <di:waypoint x="380" y="740" />
        <di:waypoint x="380" y="760" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_0rmjh2m_di" bpmnElement="Task_0rmjh2m">
        <dc:Bounds x="600" y="760" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1ifyq4k_di" bpmnElement="SequenceFlow_1ifyq4k">
        <di:waypoint x="430" y="800" />
        <di:waypoint x="600" y="800" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_17u533k_di" bpmnElement="Task_17u533k">
        <dc:Bounds x="600" y="880" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1k1o7or_di" bpmnElement="SequenceFlow_1k1o7or">
        <di:waypoint x="650" y="840" />
        <di:waypoint x="650" y="880" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_0doyopc_di" bpmnElement="Task_0doyopc">
        <dc:Bounds x="780" y="880" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_16muykh_di" bpmnElement="SequenceFlow_16muykh">
        <di:waypoint x="700" y="920" />
        <di:waypoint x="780" y="920" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MessageFlow_093dy7n_di" bpmnElement="MessageFlow_093dy7n">
        <di:waypoint x="830" y="880" />
        <di:waypoint x="830" y="730" />
        <di:waypoint x="690" y="730" />
        <di:waypoint x="690" y="580" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0eg0b3f_di" bpmnElement="EndEvent_0eg0b3f">
        <dc:Bounds x="962" y="902" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1dy3a0s_di" bpmnElement="SequenceFlow_1dy3a0s">
        <di:waypoint x="880" y="920" />
        <di:waypoint x="962" y="920" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

All samples is valid diagram in bpmn-js but first diagram valid in old versions (3) and second diagram valid in new version.

What I can tell you is that the prefix doesn’t matter as long as the namespace URI is correct

Yes, Is not matter as long as the namespace URI is correct but, when I Upgrade bpmn-js library to new version I cannot import old version diagram like sample 1 because in this diagram we have bpmn2 namespace and URI not bpmn namespace and URI

bpmn-js itself does not create new diagrams, it can only import, modify and export diagrams. It will not override your existing namespace prefix.

1 Like