<mxfile host="app.diagrams.net" agent="FleetRoutIQ single-canvas functional flow">
  <diagram id="fleet-single" name="FleetRoutIQ — Complete Functional Diagram">
    <mxGraphModel dx="5076" dy="952" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="3300" pageHeight="2820" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="title" parent="1" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=27;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#D8F54A;spacing=7;fontStyle=1;strokeColor=none;" value="FLEETROUTIQ  |  COMPLETE FUNCTIONAL DIAGRAM  |  EXERCISES 01–20" vertex="1">
          <mxGeometry height="70" width="2900" x="70" y="30" as="geometry" />
        </mxCell>
        <mxCell id="subtitle" parent="1" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=15;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#F5F8FB;spacing=7;fontStyle=1;strokeColor=none;" value="One connected flow • implemented development scope • YES / NO decisions • NEXT = retrieve • ACCEPT = persist" vertex="1">
          <mxGeometry height="45" width="2900" x="70" y="108" as="geometry" />
        </mxCell>
        <mxCell id="l1" parent="1" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=17;fontColor=#FFFFFF;strokeColor=#718096;strokeWidth=1.6;fillColor=#101820;spacing=7;fontStyle=1;strokeColor=none;" value="01  IDENTITY &amp;amp; TENANT SECURITY" vertex="1">
          <mxGeometry height="46" width="650" x="70" y="178" as="geometry" />
        </mxCell>
        <mxCell id="l2" parent="1" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=17;fontColor=#FFFFFF;strokeColor=#718096;strokeWidth=1.6;fillColor=#101820;spacing=7;fontStyle=1;strokeColor=none;" value="02  FLEET &amp;amp; DEVICE CONTROL" vertex="1">
          <mxGeometry height="46" width="650" x="760" y="178" as="geometry" />
        </mxCell>
        <mxCell id="l3" parent="1" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=17;fontColor=#FFFFFF;strokeColor=#718096;strokeWidth=1.6;fillColor=#101820;spacing=7;fontStyle=1;strokeColor=none;" value="03  DRIVER / ANDROID GPS" vertex="1">
          <mxGeometry height="46" width="650" x="1450" y="178" as="geometry" />
        </mxCell>
        <mxCell id="l4" parent="1" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=17;fontColor=#FFFFFF;strokeColor=#718096;strokeWidth=1.6;fillColor=#101820;spacing=7;fontStyle=1;strokeColor=none;" value="04  API / TELEMETRY / STORAGE" vertex="1">
          <mxGeometry height="46" width="830" x="2140" y="178" as="geometry" />
        </mxCell>
        <mxCell id="start" parent="1" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#D8F54A;spacing=7;fontStyle=1;" value="START&lt;br&gt;Open FleetRoutIQ" vertex="1">
          <mxGeometry height="66" width="280" x="250" y="270" as="geometry" />
        </mxCell>
        <mxCell id="login" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFFFFF;spacing=7;" value="Enter credentials&lt;br&gt;Web or Android" vertex="1">
          <mxGeometry height="64" width="280" x="250" y="365" as="geometry" />
        </mxCell>
        <mxCell id="supabase" parent="1" style="shape=process;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;strokeWidth=2;" value="Supabase Auth&lt;br&gt;Authenticate / issue JWT" vertex="1">
          <mxGeometry height="70" width="280" x="250" y="460" as="geometry" />
        </mxCell>
        <mxCell id="valid" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="JWT / sign-in&lt;br&gt;valid?" vertex="1">
          <mxGeometry height="110" width="230" x="275" y="560" as="geometry" />
        </mxCell>
        <mxCell id="loginerr" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Show sign-in error&lt;br&gt;Return to login" vertex="1">
          <mxGeometry height="66" width="250" x="75" y="710" as="geometry" />
        </mxCell>
        <mxCell id="orgnext" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="NEXT&lt;br&gt;Read organizations &amp;amp; memberships" vertex="1">
          <mxGeometry height="75" width="290" x="370" y="715" as="geometry" />
        </mxCell>
        <mxCell id="orgdb" parent="1" style="shape=cylinder3;boundedLbl=1;size=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="PostgreSQL&lt;br&gt;Users / Organizations / Memberships" vertex="1">
          <mxGeometry height="85" width="300" x="365" y="820" as="geometry" />
        </mxCell>
        <mxCell id="member" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Active membership&lt;br&gt;for selected organization?" vertex="1">
          <mxGeometry height="115" width="245" x="395" y="945" as="geometry" />
        </mxCell>
        <mxCell id="denied" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Deny tenant access&lt;br&gt;401 / 403" vertex="1">
          <mxGeometry height="66" width="245" x="85" y="1080" as="geometry" />
        </mxCell>
        <mxCell id="role" parent="1" style="shape=process;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFFFFF;spacing=7;strokeWidth=2;" value="Check role / RBAC permission&lt;br&gt;and tenant context" vertex="1">
          <mxGeometry height="72" width="295" x="370" y="1095" as="geometry" />
        </mxCell>
        <mxCell id="perm" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Operation&lt;br&gt;permitted?" vertex="1">
          <mxGeometry height="110" width="240" x="400" y="1210" as="geometry" />
        </mxCell>
        <mxCell id="rbacerr" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Reject unauthorized operation&lt;br&gt;403 / error envelope" vertex="1">
          <mxGeometry height="70" width="260" x="75" y="1350" as="geometry" />
        </mxCell>
        <mxCell id="choice" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Choose workflow&lt;br&gt;Fleet operator OR Driver" vertex="1">
          <mxGeometry height="110" width="270" x="380" y="1360" as="geometry" />
        </mxCell>
        <mxCell id="fleetentry" parent="1" style="shape=process;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;strokeWidth=2;" value="Fleet operator&lt;br&gt;Vehicles / devices / assignments" vertex="1">
          <mxGeometry height="70" width="300" x="935" y="1490" as="geometry" />
        </mxCell>
        <mxCell id="fleetnext" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="NEXT&lt;br&gt;Retrieve tenant-scoped fleet records" vertex="1">
          <mxGeometry height="72" width="300" x="935" y="1600" as="geometry" />
        </mxCell>
        <mxCell id="fleetdb" parent="1" style="shape=cylinder3;boundedLbl=1;size=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="PostgreSQL + RLS&lt;br&gt;Vehicles / Devices / Assignments" vertex="1">
          <mxGeometry height="86" width="300" x="935" y="1705" as="geometry" />
        </mxCell>
        <mxCell id="fleetaction" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFFFFF;spacing=7;" value="Select action&lt;br&gt;Create / update vehicle&lt;br&gt;Enroll / assign / revoke device" vertex="1">
          <mxGeometry height="95" width="320" x="925" y="1830" as="geometry" />
        </mxCell>
        <mxCell id="fleetcheck" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="RBAC, tenant ownership,&lt;br&gt;assignment overlap valid?" vertex="1">
          <mxGeometry height="120" width="270" x="950" y="1960" as="geometry" />
        </mxCell>
        <mxCell id="fleetreject" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Reject invalid / conflicting change&lt;br&gt;400 / 403 / 409" vertex="1">
          <mxGeometry height="74" width="280" x="780" y="2130" as="geometry" />
        </mxCell>
        <mxCell id="fleetaccept" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;" value="ACCEPT&lt;br&gt;Persist permitted fleet change" vertex="1">
          <mxGeometry height="74" width="290" x="1110" y="2130" as="geometry" />
        </mxCell>
        <mxCell id="fleetreturn" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;" value="Return updated fleet state&lt;br&gt;Operator may perform another action" vertex="1">
          <mxGeometry height="70" width="320" x="1090" y="2250" as="geometry" />
        </mxCell>
        <mxCell id="driverentry" parent="1" style="shape=process;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;strokeWidth=2;" value="Driver Android app&lt;br&gt;Select assigned vehicle" vertex="1">
          <mxGeometry height="70" width="300" x="1605" y="1490" as="geometry" />
        </mxCell>
        <mxCell id="sessionnext" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="NEXT&lt;br&gt;Retrieve vehicle &amp;amp; current session" vertex="1">
          <mxGeometry height="72" width="300" x="1605" y="1600" as="geometry" />
        </mxCell>
        <mxCell id="sessiondb" parent="1" style="shape=cylinder3;boundedLbl=1;size=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="PostgreSQL&lt;br&gt;Vehicles / Work Sessions" vertex="1">
          <mxGeometry height="86" width="300" x="1605" y="1705" as="geometry" />
        </mxCell>
        <mxCell id="sessioncheck" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Vehicle available &amp;amp;&lt;br&gt;no conflicting active session?" vertex="1">
          <mxGeometry height="120" width="260" x="1630" y="1830" as="geometry" />
        </mxCell>
        <mxCell id="sessionerr" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Show session conflict / error&lt;br&gt;Return to vehicle selection" vertex="1">
          <mxGeometry height="75" width="280" x="1455" y="1995" as="geometry" />
        </mxCell>
        <mxCell id="sessionaccept" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;" value="ACCEPT&lt;br&gt;Start work session in DB" vertex="1">
          <mxGeometry height="75" width="280" x="1795" y="1995" as="geometry" />
        </mxCell>
        <mxCell id="permission" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Android location&lt;br&gt;permission granted?" vertex="1">
          <mxGeometry height="110" width="250" x="1810" y="2110" as="geometry" />
        </mxCell>
        <mxCell id="gpsdenied" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Request permission / show status&lt;br&gt;No GPS upload until allowed" vertex="1">
          <mxGeometry height="72" width="300" x="1470" y="2245" as="geometry" />
        </mxCell>
        <mxCell id="gps" parent="1" style="shape=process;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;strokeWidth=2;" value="Read GPS fix&lt;br&gt;latitude, longitude, timestamp, accuracy" vertex="1">
          <mxGeometry height="80" width="300" x="1800" y="2250" as="geometry" />
        </mxCell>
        <mxCell id="gpsvalid" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="GPS sample&lt;br&gt;usable?" vertex="1">
          <mxGeometry height="110" width="220" x="2180" y="2350" as="geometry" />
        </mxCell>
        <mxCell id="discard" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Discard invalid sample&lt;br&gt;Wait for next GPS fix" vertex="1">
          <mxGeometry height="70" width="265" x="2420" y="2385" as="geometry" />
        </mxCell>
        <mxCell id="send" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="Android → FastAPI&lt;br&gt;Authenticated telemetry request" vertex="1">
          <mxGeometry height="82" width="300" x="2160" y="2210" as="geometry" />
        </mxCell>
        <mxCell id="api" parent="1" style="shape=process;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;strokeWidth=2;" value="FastAPI telemetry ingestion&lt;br&gt;Validate JWT + organization" vertex="1">
          <mxGeometry height="80" width="310" x="2410" y="1900" as="geometry" />
        </mxCell>
        <mxCell id="apivalid" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Tenant, active session,&lt;br&gt;device mapping &amp;amp; payload valid?" vertex="1">
          <mxGeometry height="120" width="270" x="2430" y="1750" as="geometry" />
        </mxCell>
        <mxCell id="apierr" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FCE8E8;spacing=7;" value="Reject / return API error&lt;br&gt;401 / 403 / 4xx" vertex="1">
          <mxGeometry height="72" width="245" x="2710" y="1790" as="geometry" />
        </mxCell>
        <mxCell id="dbnext" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="NEXT&lt;br&gt;Resolve device / assignment / session" vertex="1">
          <mxGeometry height="80" width="290" x="2440" y="1595" as="geometry" />
        </mxCell>
        <mxCell id="traccar" parent="1" style="shape=process;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;strokeWidth=2;" value="Forward position&lt;br&gt;to Traccar" vertex="1">
          <mxGeometry height="78" width="265" x="2200" y="1450" as="geometry" />
        </mxCell>
        <mxCell id="appsave" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;" value="ACCEPT&lt;br&gt;Persist app telemetry in PostgreSQL" vertex="1">
          <mxGeometry height="80" width="300" x="2550" y="1450" as="geometry" />
        </mxCell>
        <mxCell id="traccardb" parent="1" style="shape=cylinder3;boundedLbl=1;size=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="Traccar storage&lt;br&gt;(separate PostgreSQL DB)" vertex="1">
          <mxGeometry height="85" width="290" x="2170" y="1315" as="geometry" />
        </mxCell>
        <mxCell id="appdb" parent="1" style="shape=cylinder3;boundedLbl=1;size=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#EAF3FF;spacing=7;" value="FleetRoutIQ app DB&lt;br&gt;Telemetry / tenant data" vertex="1">
          <mxGeometry height="85" width="290" x="2560" y="1315" as="geometry" />
        </mxCell>
        <mxCell id="result" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Return success / failure response&lt;br&gt;No atomic cross-system guarantee" vertex="1">
          <mxGeometry height="80" width="325" x="2410" y="1165" as="geometry" />
        </mxCell>
        <mxCell id="stop" parent="1" style="rhombus;perimeter=rhombusPerimeter;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#FFF5D6;spacing=7;" value="Driver selects&lt;br&gt;Stop tracking?" vertex="1">
          <mxGeometry height="120" width="280" x="2420" y="1000" as="geometry" />
        </mxCell>
        <mxCell id="repeat" parent="1" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;" value="Continue session&lt;br&gt;Wait for next GPS sample" vertex="1">
          <mxGeometry height="75" width="245" x="2715" y="1040" as="geometry" />
        </mxCell>
        <mxCell id="endaccept" parent="1" style="shape=parallelogram;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#E9F8EB;spacing=7;" value="ACCEPT&lt;br&gt;End work session / save end time" vertex="1">
          <mxGeometry height="76" width="320" x="2400" y="855" as="geometry" />
        </mxCell>
        <mxCell id="end" parent="1" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=14;fontColor=#101820;strokeColor=#718096;strokeWidth=1.6;fillColor=#D8F54A;spacing=7;fontStyle=1;" value="END&lt;br&gt;Work session closed" vertex="1">
          <mxGeometry height="72" width="290" x="2415" y="740" as="geometry" />
        </mxCell>
        <mxCell id="e1" edge="1" parent="1" source="start" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="login" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e2" edge="1" parent="1" source="login" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="supabase" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e3" edge="1" parent="1" source="supabase" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="valid" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e4" edge="1" parent="1" source="valid" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="loginerr" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e5" edge="1" parent="1" source="loginerr" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="login" value="Retry">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="45" y="743" />
              <mxPoint x="45" y="395" />
              <mxPoint x="240" y="395" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e6" edge="1" parent="1" source="valid" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="orgnext" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e7" edge="1" parent="1" source="orgnext" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="orgdb" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e8" edge="1" parent="1" source="orgdb" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="member" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e9" edge="1" parent="1" source="member" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="denied" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e10" edge="1" parent="1" source="denied" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="login" value="Retry / switch org">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="25" y="1113" />
              <mxPoint x="25" y="395" />
              <mxPoint x="240" y="395" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e11" edge="1" parent="1" source="member" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="role" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e12" edge="1" parent="1" source="role" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="perm" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e13" edge="1" parent="1" source="perm" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="rbacerr" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e14" edge="1" parent="1" source="rbacerr" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" target="choice" value="Return">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="50" y="1385" />
              <mxPoint x="50" y="1510" />
              <mxPoint x="515" y="1510" />
              <mxPoint x="515" y="1480" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e15" edge="1" parent="1" source="perm" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="choice" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e16" edge="1" parent="1" source="choice" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="fleetentry" value="Operator">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e17" edge="1" parent="1" source="choice" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="driverentry" value="Driver">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e18" edge="1" parent="1" source="fleetentry" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="fleetnext" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e19" edge="1" parent="1" source="fleetnext" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="fleetdb" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e20" edge="1" parent="1" source="fleetdb" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="fleetaction" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e21" edge="1" parent="1" source="fleetaction" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="fleetcheck" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e22" edge="1" parent="1" source="fleetcheck" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="fleetreject" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e23" edge="1" parent="1" source="fleetreject" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="fleetaction" value="Retry">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="740" y="2167" />
              <mxPoint x="740" y="1877" />
              <mxPoint x="910" y="1877" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e24" edge="1" parent="1" source="fleetcheck" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="fleetaccept" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e25" edge="1" parent="1" source="fleetaccept" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="fleetreturn" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e26" edge="1" parent="1" source="fleetreturn" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="fleetaction" value="Next action">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="1440" y="2285" />
              <mxPoint x="1440" y="1877" />
              <mxPoint x="1260" y="1877" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e27" edge="1" parent="1" source="driverentry" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="sessionnext" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e28" edge="1" parent="1" source="sessionnext" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="sessiondb" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e29" edge="1" parent="1" source="sessiondb" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="sessioncheck" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e30" edge="1" parent="1" source="sessioncheck" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="sessionerr" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e31" edge="1" parent="1" source="sessionerr" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="driverentry" value="Retry">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="1425" y="2030" />
              <mxPoint x="1425" y="1525" />
              <mxPoint x="1590" y="1525" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e32" edge="1" parent="1" source="sessioncheck" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="sessionaccept" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e33" edge="1" parent="1" source="sessionaccept" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="permission" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e34" edge="1" parent="1" source="permission" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="gpsdenied" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e35" edge="1" parent="1" source="gpsdenied" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="permission" value="Retry">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="1400" y="2281" />
              <mxPoint x="1400" y="2165" />
              <mxPoint x="1795" y="2165" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e36" edge="1" parent="1" source="permission" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="gps" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e37" edge="1" parent="1" source="gps" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="gpsvalid" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e38" edge="1" parent="1" source="gpsvalid" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="discard" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e39" edge="1" parent="1" source="discard" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="gps" value="Next fix">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="2550" y="2480" />
              <mxPoint x="1755" y="2480" />
              <mxPoint x="1755" y="2290" />
              <mxPoint x="1785" y="2290" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e40" edge="1" parent="1" source="gpsvalid" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" target="send" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e41" edge="1" parent="1" source="send" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="api" value="">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="2790" y="2251" />
              <mxPoint x="2790" y="1940" />
              <mxPoint x="2735" y="1940" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e42" edge="1" parent="1" source="api" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="dbnext" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e43" edge="1" parent="1" source="dbnext" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="apivalid" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e44" edge="1" parent="1" source="apivalid" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="apierr" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e45" edge="1" parent="1" source="apierr" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="result" value="Failure">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="3000" y="1826" />
              <mxPoint x="3000" y="1205" />
              <mxPoint x="2750" y="1205" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e46" edge="1" parent="1" source="apivalid" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" target="traccar" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e47" edge="1" parent="1" source="apivalid" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" target="appsave" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e48" edge="1" parent="1" source="traccar" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="traccardb" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e49" edge="1" parent="1" source="appsave" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="appdb" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e50" edge="1" parent="1" source="traccardb" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="result" value="Status">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e51" edge="1" parent="1" source="appdb" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="result" value="Status">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e52" edge="1" parent="1" source="result" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="stop" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e53" edge="1" parent="1" source="stop" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="repeat" value="NO">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e54" edge="1" parent="1" source="repeat" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="gps" value="Next fix">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="3070" y="1077" />
              <mxPoint x="3070" y="2550" />
              <mxPoint x="1740" y="2550" />
              <mxPoint x="1740" y="2290" />
              <mxPoint x="1785" y="2290" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e55" edge="1" parent="1" source="stop" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" target="endaccept" value="YES">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e56" edge="1" parent="1" source="endaccept" style="html=1;endArrow=block;endFill=1;strokeColor=#64748B;strokeWidth=2;fontSize=12;fontColor=#334155;labelBackgroundColor=#FFFFFF;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;" target="end" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
