Importing bpmn file without <bpmndi:BPMNDiagram>

Hello , can i import a bpmn file which conatin only the Process, like this :

<?xml version="1.0" encoding="UTF-8"?>
<definitions ...>
  <process id="Process_1" isExecutable="false">
    <startEvent id="StartEvent_1y45yut" name="init order">
      <outgoing>SequenceFlow_0h21x7r</outgoing>
    </startEvent>
    <task id="Task_1hcentk" name="make discount">
      <incoming>SequenceFlow_0h21x7r</incoming>
      <outgoing>Flow_0hd5gep</outgoing>
    </task>
    <sequenceFlow id="SequenceFlow_0h21x7r" name="order created" sourceRef="StartEvent_1y45yut" targetRef="Task_1hcentk" />
    <intermediateThrowEvent id="Event_17mqydy" name="END">
      <incoming>Flow_0hd5gep</incoming>
    </intermediateThrowEvent>
    <sequenceFlow id="Flow_0hd5gep" name="order discounted" sourceRef="Task_1hcentk" targetRef="Event_17mqydy" />
  </process>
</definitions>

can the modeler generate the the bpmndi:BPMNDiagram part with all (x/y , shape ,bounds) on its own and display the diagrame ?

That’s currently not possible (cf. Generate the DI information automatically · Issue #853 · bpmn-io/bpmn-js · GitHub).

There is a (not officially maintained) project which generates the DI to some extend. Maybe it’s worth a look.

1 Like

Thanks a lot for your answer @Niklas_Kiefer