Bpmn.io Diagram export and import into Camunda Modeler 7.3 Namespace issue

The exported .bpmn-File from bpmn.io v 12.1 works fine in camunda. The Class Definition of a ServiceTask which I specified via the properties Panel is not recogniced by camunda. A PropertyPanel related thread is here: Extending the Properties-Panel for ServiceTasks (Input variable mapping)

The exported file from bpmn.io:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions 
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
 xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
 xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
 xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
 xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn"
 xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
 
  <bpmn2:process id="Process_1" isExecutable="true">
    <bpmn2:serviceTask id="ServiceTask_1t3yyks" camunda:class="xx.yy.ee.dd.CC" />
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="ServiceTask_1t3yyks_di" bpmnElement="ServiceTask_1t3yyks">
        <dc:Bounds x="536" y="205" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>

vs. a exported file from camunda itself:

<?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:camunda="http://activiti.org/bpmn"
 xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
 xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
 id="_yqbMYJKrEeWJxMhuO2Z5Mg"
 exporter="camunda modeler"
 exporterVersion="2.7.0"
 targetNamespace="http://activiti.org/bpmn">
 
  <bpmn2:process id="Process_1" isExecutable="true">
    <bpmn2:serviceTask id="ServiceTask_1" camunda:class="xx.yy.ee.dd.CC"/>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_3" bpmnElement="ServiceTask_1">
        <dc:Bounds height="80.0" width="100.0" x="132.0" y="139.0"/>
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>

The xmlns:camunda Namespace is a different one. Is this behavior correct because of the targetNamespace="http://activiti.org/bpmn" definition and therefore I need a conversion/import? Or is this behavior not expected?

Camunda will change its namespace from http://activiti.org/bpmn to http://camunda.org/schema/1.0/bpmn with the upcoming Camunda BPM 7.4 release (it will still support the old namespace though).

To be future-proof we chose the camunda namespace as the one used in our properties panel.

As an unfortunate side-effect the bpmn.io modeler + properties-panel will not support the activity namespace unless you patch that support into it yourself.

Applications built around bpmn.io will need to come with a migration path from activity to camunda.

2 Likes

Where can I find the XSD Schema File for the namespace http://camunda.org/schema/1.0/bpmn?

I have not had any luck searching for it myself neither via google nor on github nor in the provided .jars.

Thanks for pointing me in the right direction!

Please do not necrobump old topics. Create new ones instead and link them (if they are related).