# Converting draw.io flows to bpmn.io flows en masse

**URL:** <https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330>\
**Category:** Users\
**Created:** [February 5, 2025, 10:57am UTC](https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330 "2025-02-05T10:57:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@Daniel](https://forum.bpmn.io/u/Daniel)\
**Post date:** [February 5, 2025, 10:57am UTC](https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330/1 "2025-02-05T10:57:27Z")

</div>

I work as a Business Analyst for a large company and would like to convince them to utilise [bpmn.io](http://bpmn.io) in future instead of [draw.io](http://draw.io). I’m currently writing up the pros and cons of such a switch.

Currently, we embed [draw.io](http://draw.io) process flows into Confluence as part of our living design, and documenting our living design is being pushed hard right now. I’m aware based on other topics that there is indeed an integration tool for Confluence / [bpmn.io](http://bpmn.io) on Github, which is great.

I know the obvious pro of “it cuts time spent creating flows by at least 50% compared to [draw.io](http://draw.io)” will raise eyebrows, however I’m anticipating pushback on the company having to deal with two different tools depending on the time a process flow was created ([pre-bpmn.io](http://pre-bpmn.io) or [post-bpmn.io](http://post-bpmn.io)). If it were possible to automate the update of various process flows (or at least minimise any manual work involved) then this would hopefully swing things in favour of using [bpmn.io](http://bpmn.io) in the long run.

Is there any way to convert already-created [draw.io](http://draw.io) process flows into [bpmn.io](http://bpmn.io) process flows?

---

<div class="post-metadata">

**Author:** ![philippfromme](https://forum.bpmn.io/user_avatar/forum.bpmn.io/philippfromme/32/2803_2.png) [@philippfromme](https://forum.bpmn.io/u/philippfromme)\
**Post date:** [February 5, 2025, 2:18pm UTC](https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330/2 "2025-02-05T14:18:16Z")

</div>

Can you provide an example of what such a process created with [draw.io](http://draw.io) looks like?

---

<div class="post-metadata">

**Author:** ![Daniel](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@Daniel](https://forum.bpmn.io/u/Daniel)\
**Post date:** [February 5, 2025, 2:26pm UTC](https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330/3 "2025-02-05T14:26:14Z")

</div>

Sure - See attached.

 ![example drawio](https://forum.bpmn.io/uploads/default/original/2X/1/11677bfd3f9a034cc6d7f3f7db03d11fc035c72d.png)

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [February 10, 2025, 8:02am UTC](https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330/4 "2025-02-10T08:02:06Z")

</div>

I’m not aware of an easy way to convert [draw.io](http://draw.io) “BPMN” diagrams to valid BPMN 2.0 XML. Others [asked for it previously](https://github.com/jgraph/drawio/discussions/2829).

It is technically possible to [read the draw.io file](https://github.com/SciumoTech/mxgraphdata) from outside the editor and transform in the way you please. However the format is quite far away from BPMN 2.0 XML, the standarized format the [bpmn.io](http://bpmn.io) reads. [draw.io](http://draw.io) is a _drawing tool_, not a BPMN editor, and hence allows you to model many things that are impossible/confusing/invalid in accordance with the BPMN.

* * *

To dig a little deeper, let’s consider a simple diagram:

![image](https://forum.bpmn.io/uploads/default/original/2X/1/1de1c9bb7bf2b5cd185d33a133a7c0a38d39617a.png)

The following is the [draw.io](http://draw.io) export: [bpmn-process.drawio.xml](https://forum.bpmn.io/uploads/short-url/suXhmlqfUoFolSLBgMfTG3ot8Q7.xml) (2.4 KB). It defines the shapes and connections drawn, gives some hints on the “BPMN element” each of these shapes represents.

---

<div class="post-metadata">

**Author:** ![philippfromme](https://forum.bpmn.io/user_avatar/forum.bpmn.io/philippfromme/32/2803_2.png) [@philippfromme](https://forum.bpmn.io/u/philippfromme)\
**Post date:** [February 10, 2025, 8:07am UTC](https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330/5 "2025-02-10T08:07:11Z")

</div>

For simplicity, here’s the XML:

```XML
<mxfile host="app.diagrams.net" modified="2025-02-10T07:56:47.719Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" etag="InJSAKzmY9VHQVTW_OWn" version="22.1.17" type="device">
  <diagram name="Page-1" id="yedskXcimKu3Qf1aefTr">
    <mxGraphModel dx="995" dy="620" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="uexFnpEDcD9RrbY6JTcu-1" value="POOL" style="shape=mxgraph.bpmn.swimlane;html=1;startSize=20;horizontal=0;swimlaneLine=1;collapsible=0;fontStyle=0;swimlaneFillColor=#ffffff;strokeWidth=2;isCollection=1;whiteSpace=wrap;" vertex="1" parent="1">
          <mxGeometry x="250" y="270" width="520" height="140" as="geometry" />
        </mxCell>
        <mxCell id="uexFnpEDcD9RrbY6JTcu-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="425" y="340" as="sourcePoint" />
            <mxPoint x="585" y="300" as="targetPoint" />
            <Array as="points">
              <mxPoint x="425" y="280" />
              <mxPoint x="585" y="280" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="uexFnpEDcD9RrbY6JTcu-2" value="FIRST" style="points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;" vertex="1" parent="1">
          <mxGeometry x="330" y="300" width="120" height="80" as="geometry" />
        </mxCell>
        <mxCell id="uexFnpEDcD9RrbY6JTcu-6" value="SECOND" style="points=[[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0.25,0],[1,0.5,0],[1,0.75,0],[0.75,1,0],[0.5,1,0],[0.25,1,0],[0,0.75,0],[0,0.5,0],[0,0.25,0]];shape=mxgraph.bpmn.task;whiteSpace=wrap;rectStyle=rounded;size=10;html=1;container=1;expand=0;collapsible=0;taskMarker=abstract;" vertex="1" parent="1">
          <mxGeometry x="550" y="300" width="120" height="80" as="geometry" />
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>

```

It’s not like BPMN at all making converting it to BPMN non-trivial.

---

<div class="post-metadata">

**Author:** ![system](https://forum.bpmn.io/uploads/default/original/2X/b/b534893973385c2d302b38572464112e4adae002.png) [@system](https://forum.bpmn.io/u/system)\
**Post date:** [February 17, 2025, 8:07am UTC](https://forum.bpmn.io/t/converting-draw-io-flows-to-bpmn-io-flows-en-masse/14330/6 "2025-02-17T08:07:43Z")

</div>

Closed on February 17, 2025, 8:07am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
