Here is the Draw.io XML code representing the business process diagram with the two variants you described. You can copy this code and paste it into Draw.io (app.diagrams.net) by choosing File > Import from > XML. This will visualize the business process as per your requirements.
<mxfile host="app.diagrams.net" modified="2023-10-01T00:00:00.000Z" agent="Mozilla/5.0" etag="123456" version="14.9.6" type="device">
<diagram id="diagram-1" name="Business Process">
<mxGraphModel dx="1000" dy="1000" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1200" pageHeight="1600" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- Start Event -->
<mxCell id="2" value="Start" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1">
<mxGeometry x="300" y="100" width="40" height="40" as="geometry"/>
</mxCell>
<!-- Task 1 -->
<mxCell id="3" value="Banking customer fills a loan application form" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="250" y="200" width="300" height="60" as="geometry"/>
</mxCell>
<!-- Edge from Start to Task 1 -->
<mxCell id="13" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="2" target="3">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Task 2 -->
<mxCell id="4" value="Loan terms are summarized to the user" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="250" y="300" width="300" height="60" as="geometry"/>
</mxCell>
<!-- Edge from Task 1 to Task 2 -->
<mxCell id="14" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="3" target="4">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Gateway (Split) -->
<mxCell id="5" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="325" y="400" width="50" height="50" as="geometry"/>
</mxCell>
<!-- Edge from Task 2 to Gateway -->
<mxCell id="15" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="4" target="5">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Variant 1 -->
<!-- Task 3.1.1 -->
<mxCell id="6" value="TAN Code input on Banking Website" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="100" y="500" width="300" height="60" as="geometry"/>
</mxCell>
<!-- Edge from Gateway to Task 3.1.1 -->
<mxCell id="16" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="5" target="6">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Task 3.1.2 -->
<mxCell id="7" value="PDF document is displayed" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="100" y="600" width="300" height="60" as="geometry"/>
</mxCell>
<!-- Edge from Task 3.1.1 to Task 3.1.2 -->
<mxCell id="18" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="6" target="7">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Variant 2 -->
<!-- Task 3.2.1 -->
<mxCell id="8" value="PDF document is displayed" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="500" y="500" width="300" height="60" as="geometry"/>
</mxCell>
<!-- Edge from Gateway to Task 3.2.1 -->
<mxCell id="17" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="5" target="8">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Task 3.2.2 -->
<mxCell id="9" value="TAN Code input on PDF view" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="500" y="600" width="300" height="60" as="geometry"/>
</mxCell>
<!-- Edge from Task 3.2.1 to Task 3.2.2 -->
<mxCell id="20" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="8" target="9">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Gateway (Merge) -->
<mxCell id="10" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="325" y="700" width="50" height="50" as="geometry"/>
</mxCell>
<!-- Edges from Variants to Gateway (Merge) -->
<mxCell id="19" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="7" target="10">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="21" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="9" target="10">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Task 4 -->
<mxCell id="11" value="Finish Screen" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="250" y="800" width="300" height="60" as="geometry"/>
</mxCell>
<!-- Edge from Gateway (Merge) to Task 4 -->
<mxCell id="22" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="10" target="11">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- End Event -->
<mxCell id="12" value="End" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1">
<mxGeometry x="300" y="900" width="40" height="40" as="geometry"/>
</mxCell>
<!-- Edge from Task 4 to End Event -->
<mxCell id="23" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="11" target="12">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Instructions to Use the XML:
- Open Draw.io: Go to Draw.io.
- Create a New Diagram: Choose to create a new blank diagram.
- Import XML:
- Click on File in the menu.
- Select Import from > Device.
- Paste the above XML code into a text file and save it with an
.xml extension (e.g., business_process.xml).
- Select the saved XML file to import.
- View the Diagram: The diagram will be loaded, showing the business process with the two variants as per your description.
Diagram Overview:
- Start Event: Represents the beginning of the process.
- Task 1: "Banking customer fills a loan application form".
- Task 2: "Loan terms are summarized to the user".
- Gateway (Split): Decision point where the process splits into two variants.
- Variant 1:
- Task 3.1.1: "TAN Code input on Banking Website".
- Task 3.1.2: "PDF document is displayed".
- Variant 2:
- Task 3.2.1: "PDF document is displayed".
- Task 3.2.2: "TAN Code input on PDF view".
- Gateway (Merge): Converges the two variants back into a single flow.
- Task 4: "Finish Screen".
- End Event: Represents the end of the process.
Feel free to adjust the positioning and styling of the elements within Draw.io as needed. The provided XML code sets up the structure based on your description.