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">
    <task id="Task_1hcentk" name="make discount">
    <sequenceFlow id="SequenceFlow_0h21x7r" name="order created" sourceRef="StartEvent_1y45yut" targetRef="Task_1hcentk" />
    <intermediateThrowEvent id="Event_17mqydy" name="END">
    <sequenceFlow id="Flow_0hd5gep" name="order discounted" sourceRef="Task_1hcentk" targetRef="Event_17mqydy" />

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