Skip to content
BPMN 2.0 templates

BPMN — Pizza Order

The canonical BPMN teaching example — pizza ordering with parallel cook + bake.

Template previewBPMN 2.0
Rendering…

Make it your own.

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
  xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
  id="Defs_3" targetNamespace="http://flowss.ai/bpmn">
  <bpmn:process id="Pizza" isExecutable="false">
    <bpmn:startEvent id="S" name="Order placed"/>
    <bpmn:task id="T1" name="Take order"/>
    <bpmn:parallelGateway id="P1"/>
    <bpmn:task id="T2" name="Prepare dough"/>
    <bpmn:task id="T3" name="Prepare toppings"/>
    <bpmn:parallelGateway id="P2"/>
    <bpmn:task id="T4" name="Assemble pizza"/>
    <bpmn:task id="T5" name="Bake"/>
    <bpmn:task id="T6" name="Deliver"/>
    <bpmn:endEvent id="E" name="Eaten"/>
    <bpmn:sequenceFlow id="f1" sourceRef="S"  targetRef="T1"/>
    <bpmn:sequenceFlow id="f2" sourceRef="T1" targetRef="P1"/>
    <bpmn:sequenceFlow id="f3" sourceRef="P1" targetRef="T2"/>
    <bpmn:sequenceFlow id="f4" sourceRef="P1" targetRef="T3"/>
    <bpmn:sequenceFlow id="f5" sourceRef="T2" targetRef="P2"/>
    <bpmn:sequenceFlow id="f6" sourceRef="T3" targetRef="P2"/>
    <bpmn:sequenceFlow id="f7" sourceRef="P2" targetRef="T4"/>
    <bpmn:sequenceFlow id="f8" sourceRef="T4" targetRef="T5"/>
    <bpmn:sequenceFlow id="f9" sourceRef="T5" targetRef="T6"/>
    <bpmn:sequenceFlow id="f10" sourceRef="T6" targetRef="E"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="D">
    <bpmndi:BPMNPlane bpmnElement="Pizza">
      <bpmndi:BPMNShape bpmnElement="S"><dc:Bounds x="40" y="140" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="T1"><dc:Bounds x="120" y="118" width="100" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="P1"><dc:Bounds x="260" y="133" width="50" height="50"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="T2"><dc:Bounds x="350" y="40" width="120" height="60"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="T3"><dc:Bounds x="350" y="200" width="120" height="60"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="P2"><dc:Bounds x="510" y="133" width="50" height="50"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="T4"><dc:Bounds x="600" y="118" width="120" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="T5"><dc:Bounds x="750" y="118" width="100" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="T6"><dc:Bounds x="880" y="118" width="100" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="E"><dc:Bounds x="1010" y="140" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="f1"><di:waypoint x="76"  y="158"/><di:waypoint x="120" y="158"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f2"><di:waypoint x="220" y="158"/><di:waypoint x="260" y="158"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f3"><di:waypoint x="285" y="133"/><di:waypoint x="285" y="70"/><di:waypoint x="350" y="70"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f4"><di:waypoint x="285" y="183"/><di:waypoint x="285" y="230"/><di:waypoint x="350" y="230"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f5"><di:waypoint x="470" y="70"/><di:waypoint x="535" y="70"/><di:waypoint x="535" y="133"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f6"><di:waypoint x="470" y="230"/><di:waypoint x="535" y="230"/><di:waypoint x="535" y="183"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f7"><di:waypoint x="560" y="158"/><di:waypoint x="600" y="158"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f8"><di:waypoint x="720" y="158"/><di:waypoint x="750" y="158"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f9"><di:waypoint x="850" y="158"/><di:waypoint x="880" y="158"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f10"><di:waypoint x="980" y="158"/><di:waypoint x="1010" y="158"/></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>