<div class="page">
<div class="cover text-center">
<img class="mx-auto" src=/itb/images/logo_mislata.png alt="logo">
# Seqüència: Caixer automàtic
<div class="text-end fit-content ms-auto my-3 mt-auto pt-3">
<p><strong>Autor:</strong> Joan Puigcerver Ibáñez</p>
<p><strong>Correu electrònic:</strong> j.puigcerveribanez@edu.gva.es</p>
<p><strong>Curs:</strong> 2024/2025</p>
</div>
<div>
<p class="fw-bold mb-0">Llicència: BY-NC-SA</p>
<p class="d-none d-md-block">(Reconeixement - No Comercial - Compartir Igual)</p>
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.ca" target="_blank">
<img class="mx-auto" src="/itb/images/license.png" alt="Licence"/>
</a>
</div><!--license-->
</div><!--cover-->
</div><!--page-->
{:toc}
## Descripció de l'exemple
Aquest exemple modela la seqüència de les accions que es porten a terme
entre les parts implicades en l'extració de diners d'un caixer automàtic.
## Diagrama
<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="{&quot;highlight&quot;:&quot;#0000ff&quot;,&quot;nav&quot;:true,&quot;resize&quot;:true,&quot;toolbar&quot;:&quot;zoom layers tags lightbox&quot;,&quot;edit&quot;:&quot;_blank&quot;,&quot;xml&quot;:&quot;&lt;mxfile host=\&quot;app.diagrams.net\&quot; modified=\&quot;2024-03-25T15:06:43.764Z\&quot; agent=\&quot;Mozilla&#x2F;5.0 (Windows NT 10.0; Win64; x64) AppleWebKit&#x2F;537.36 (KHTML, like Gecko) Chrome&#x2F;123.0.0.0 Safari&#x2F;537.36\&quot; etag=\&quot;ycbiWPBTGNI6o7IpjvfN\&quot; version=\&quot;24.0.0\&quot; type=\&quot;google\&quot;&gt;\n &lt;diagram name=\&quot;Page-1\&quot; id=\&quot;2YBvvXClWsGukQMizWep\&quot;&gt;\n &lt;mxGraphModel grid=\&quot;1\&quot; page=\&quot;1\&quot; gridSize=\&quot;10\&quot; guides=\&quot;1\&quot; tooltips=\&quot;1\&quot; connect=\&quot;1\&quot; arrows=\&quot;1\&quot; fold=\&quot;1\&quot; pageScale=\&quot;1\&quot; pageWidth=\&quot;850\&quot; pageHeight=\&quot;1100\&quot; math=\&quot;0\&quot; shadow=\&quot;0\&quot;&gt;\n &lt;root&gt;\n &lt;mxCell id=\&quot;0\&quot; &#x2F;&gt;\n &lt;mxCell id=\&quot;1\&quot; parent=\&quot;0\&quot; &#x2F;&gt;\n &lt;mxCell id=\&quot;aM9ryv3xv72pqoxQDRHE-5\&quot; value=\&quot;Caixer automàtic\&quot; style=\&quot;shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={&amp;quot;edgeStyle&amp;quot;:&amp;quot;elbowEdgeStyle&amp;quot;,&amp;quot;elbow&amp;quot;:&amp;quot;vertical&amp;quot;,&amp;quot;curved&amp;quot;:0,&amp;quot;rounded&amp;quot;:0};\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;240\&quot; y=\&quot;40\&quot; width=\&quot;120\&quot; height=\&quot;800\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot; value=\&quot;\&quot; style=\&quot;html=1;points=[];perimeter=orthogonalPerimeter;outlineConnect=0;targetShapes=umlLifeline;portConstraint=eastwest;newEdgeStyle={&amp;quot;edgeStyle&amp;quot;:&amp;quot;elbowEdgeStyle&amp;quot;,&amp;quot;elbow&amp;quot;:&amp;quot;vertical&amp;quot;,&amp;quot;curved&amp;quot;:0,&amp;quot;rounded&amp;quot;:0};\&quot; vertex=\&quot;1\&quot; parent=\&quot;aM9ryv3xv72pqoxQDRHE-5\&quot;&gt;\n &lt;mxGeometry x=\&quot;55\&quot; y=\&quot;80\&quot; width=\&quot;10\&quot; height=\&quot;650\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;aM9ryv3xv72pqoxQDRHE-7\&quot; value=\&quot;1. Insertar targeta\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-3\&quot; target=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;95\&quot; y=\&quot;120\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;180\&quot; y=\&quot;120\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-3\&quot; value=\&quot;\&quot; style=\&quot;shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={&amp;quot;edgeStyle&amp;quot;:&amp;quot;elbowEdgeStyle&amp;quot;,&amp;quot;elbow&amp;quot;:&amp;quot;vertical&amp;quot;,&amp;quot;curved&amp;quot;:0,&amp;quot;rounded&amp;quot;:0};participant=umlActor;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;80\&quot; y=\&quot;40\&quot; width=\&quot;20\&quot; height=\&quot;800\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-4\&quot; value=\&quot;Servidor del banc\&quot; style=\&quot;shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={&amp;quot;edgeStyle&amp;quot;:&amp;quot;elbowEdgeStyle&amp;quot;,&amp;quot;elbow&amp;quot;:&amp;quot;vertical&amp;quot;,&amp;quot;curved&amp;quot;:0,&amp;quot;rounded&amp;quot;:0};\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;440\&quot; y=\&quot;40\&quot; width=\&quot;120\&quot; height=\&quot;800\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot; value=\&quot;\&quot; style=\&quot;html=1;points=[];perimeter=orthogonalPerimeter;outlineConnect=0;targetShapes=umlLifeline;portConstraint=eastwest;newEdgeStyle={&amp;quot;edgeStyle&amp;quot;:&amp;quot;elbowEdgeStyle&amp;quot;,&amp;quot;elbow&amp;quot;:&amp;quot;vertical&amp;quot;,&amp;quot;curved&amp;quot;:0,&amp;quot;rounded&amp;quot;:0};\&quot; vertex=\&quot;1\&quot; parent=\&quot;Sdb-hj05ttBLRFs4y2Tk-4\&quot;&gt;\n &lt;mxGeometry x=\&quot;55\&quot; y=\&quot;80\&quot; width=\&quot;10\&quot; height=\&quot;590\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-8\&quot; value=\&quot;Compte bancari\&quot; style=\&quot;shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={&amp;quot;edgeStyle&amp;quot;:&amp;quot;elbowEdgeStyle&amp;quot;,&amp;quot;elbow&amp;quot;:&amp;quot;vertical&amp;quot;,&amp;quot;curved&amp;quot;:0,&amp;quot;rounded&amp;quot;:0};\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;640\&quot; y=\&quot;40\&quot; width=\&quot;120\&quot; height=\&quot;800\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-9\&quot; value=\&quot;\&quot; style=\&quot;html=1;points=[];perimeter=orthogonalPerimeter;outlineConnect=0;targetShapes=umlLifeline;portConstraint=eastwest;newEdgeStyle={&amp;quot;edgeStyle&amp;quot;:&amp;quot;elbowEdgeStyle&amp;quot;,&amp;quot;elbow&amp;quot;:&amp;quot;vertical&amp;quot;,&amp;quot;curved&amp;quot;:0,&amp;quot;rounded&amp;quot;:0};\&quot; vertex=\&quot;1\&quot; parent=\&quot;Sdb-hj05ttBLRFs4y2Tk-8\&quot;&gt;\n &lt;mxGeometry x=\&quot;55\&quot; y=\&quot;440\&quot; width=\&quot;10\&quot; height=\&quot;210\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-10\&quot; value=\&quot;2. Verificar targeta\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;323\&quot; y=\&quot;140\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;340\&quot; y=\&quot;130\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;413\&quot; y=\&quot;140\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;490\&quot; y=\&quot;140\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-11\&quot; value=\&quot;3. Targeta OK\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot; target=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;305\&quot; y=\&quot;240\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;450\&quot; y=\&quot;170\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;430\&quot; y=\&quot;160\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;390\&quot; y=\&quot;160\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;190\&quot; y=\&quot;240\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;110\&quot; y=\&quot;240\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-12\&quot; value=\&quot;4. Demanar PIN\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-3\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;100\&quot; y=\&quot;130\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;240\&quot; y=\&quot;180\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;190\&quot; y=\&quot;130\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;305\&quot; y=\&quot;130\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-13\&quot; value=\&quot;Alternative\&quot; style=\&quot;shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;width=70;height=20;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;150\&quot; width=\&quot;520\&quot; height=\&quot;120\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-16\&quot; value=\&quot;3. Targeta invàlida\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot; target=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;300\&quot; y=\&quot;210\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;400\&quot; y=\&quot;240\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;390\&quot; y=\&quot;230\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;445\&quot; y=\&quot;210\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;425\&quot; y=\&quot;200\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;385\&quot; y=\&quot;200\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;185\&quot; y=\&quot;280\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;490\&quot; y=\&quot;210\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-17\&quot; value=\&quot;5. Extreure targeta\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-3\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;305\&quot; y=\&quot;190\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;270\&quot; y=\&quot;250\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;170\&quot; y=\&quot;240\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;250\&quot; y=\&quot;190\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;200\&quot; y=\&quot;140\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;100\&quot; y=\&quot;190\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-18\&quot; value=\&quot;\&quot; style=\&quot;line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;dashed=1;dashPattern=12 12;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;210\&quot; width=\&quot;520\&quot; height=\&quot;8\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-20\&quot; value=\&quot;[if targeta és vàlida]\&quot; style=\&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;170\&quot; width=\&quot;80\&quot; height=\&quot;40\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-21\&quot; value=\&quot;[else]\&quot; style=\&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;218\&quot; width=\&quot;80\&quot; height=\&quot;40\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-22\&quot; value=\&quot;6. Introdueix PIN\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-3\&quot; target=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;315\&quot; y=\&quot;250\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;250\&quot; y=\&quot;300\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;410\&quot; y=\&quot;250\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;400\&quot; y=\&quot;240\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;455\&quot; y=\&quot;220\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;435\&quot; y=\&quot;210\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;395\&quot; y=\&quot;210\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;195\&quot; y=\&quot;290\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;505\&quot; y=\&quot;250\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-23\&quot; value=\&quot;7. Verificar PIN\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;300\&quot; y=\&quot;360\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;410\&quot; y=\&quot;310\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;335\&quot; y=\&quot;360\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;408\&quot; y=\&quot;370\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;490\&quot; y=\&quot;360\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-24\&quot; value=\&quot;8. PIN OK\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;305\&quot; y=\&quot;340\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;450\&quot; y=\&quot;340\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;430\&quot; y=\&quot;330\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;390\&quot; y=\&quot;330\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;190\&quot; y=\&quot;410\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;495\&quot; y=\&quot;340\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-25\&quot; value=\&quot;9. Preguntar quantitat\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;295\&quot; y=\&quot;350\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;240\&quot; y=\&quot;350\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;190\&quot; y=\&quot;300\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;90\&quot; y=\&quot;350\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-26\&quot; value=\&quot;Alternative\&quot; style=\&quot;shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;width=70;height=20;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;320\&quot; width=\&quot;520\&quot; height=\&quot;120\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-27\&quot; value=\&quot;8. PIN invàlid\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;305\&quot; y=\&quot;410\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;400\&quot; y=\&quot;410\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;390\&quot; y=\&quot;400\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;445\&quot; y=\&quot;380\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;425\&quot; y=\&quot;370\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;385\&quot; y=\&quot;370\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;185\&quot; y=\&quot;450\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;495\&quot; y=\&quot;410\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-28\&quot; value=\&quot;10. Extreure targeta\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;295\&quot; y=\&quot;420\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;270\&quot; y=\&quot;420\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;170\&quot; y=\&quot;410\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;250\&quot; y=\&quot;360\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;200\&quot; y=\&quot;310\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;90\&quot; y=\&quot;420\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-29\&quot; value=\&quot;\&quot; style=\&quot;line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;dashed=1;dashPattern=12 12;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;380\&quot; width=\&quot;520\&quot; height=\&quot;8\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-30\&quot; value=\&quot;[if PIN és vàlid]\&quot; style=\&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;340\&quot; width=\&quot;80\&quot; height=\&quot;40\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-31\&quot; value=\&quot;[else]\&quot; style=\&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;388\&quot; width=\&quot;80\&quot; height=\&quot;40\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-32\&quot; value=\&quot;11. Introdueix quantitat\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;295\&quot; y=\&quot;470\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;250\&quot; y=\&quot;470\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;410\&quot; y=\&quot;420\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;400\&quot; y=\&quot;410\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;455\&quot; y=\&quot;390\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;435\&quot; y=\&quot;380\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;395\&quot; y=\&quot;380\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;195\&quot; y=\&quot;460\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;90\&quot; y=\&quot;470\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-33\&quot; value=\&quot;12. Comença transacció\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;310\&quot; y=\&quot;480\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;415\&quot; y=\&quot;480\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;340\&quot; y=\&quot;530\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;413\&quot; y=\&quot;540\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;500\&quot; y=\&quot;480\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-34\&quot; value=\&quot;13. Comprovar si &amp;lt;br&amp;gt;hi ha suficient saldo\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-9\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;510\&quot; y=\&quot;500\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;640\&quot; y=\&quot;490\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;620\&quot; y=\&quot;500\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;545\&quot; y=\&quot;550\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;618\&quot; y=\&quot;560\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;700\&quot; y=\&quot;500\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-35\&quot; value=\&quot;Alternative\&quot; style=\&quot;shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;width=70;height=20;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;510\&quot; width=\&quot;710\&quot; height=\&quot;210\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-36\&quot; value=\&quot;14. Saldo suficient\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-9\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;490\&quot; y=\&quot;549\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;640\&quot; y=\&quot;540\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;650\&quot; y=\&quot;530\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;635\&quot; y=\&quot;549\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;615\&quot; y=\&quot;539\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;575\&quot; y=\&quot;539\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;375\&quot; y=\&quot;619\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;680\&quot; y=\&quot;549\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-37\&quot; value=\&quot;15. Actualitza diners\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-9\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;510\&quot; y=\&quot;570\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;560\&quot; y=\&quot;565\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;645\&quot; y=\&quot;570\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;625\&quot; y=\&quot;580\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;550\&quot; y=\&quot;630\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;623\&quot; y=\&quot;640\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;700\&quot; y=\&quot;570\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-39\&quot; value=\&quot;16. Actualització completada\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-9\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;500\&quot; y=\&quot;590\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;635\&quot; y=\&quot;590\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;645\&quot; y=\&quot;580\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;630\&quot; y=\&quot;599\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;610\&quot; y=\&quot;589\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;570\&quot; y=\&quot;589\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;370\&quot; y=\&quot;669\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;690\&quot; y=\&quot;590\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-41\&quot; value=\&quot;17. Transacció completada&amp;lt;br&amp;gt;satisfactoriament\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot; target=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;280\&quot; y=\&quot;614.5\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;375\&quot; y=\&quot;614.5\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;365\&quot; y=\&quot;604.5\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;420\&quot; y=\&quot;584.5\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;400\&quot; y=\&quot;574.5\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;360\&quot; y=\&quot;574.5\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;160\&quot; y=\&quot;654.5\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;470\&quot; y=\&quot;614.5\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-42\&quot; value=\&quot;14. Saldo insuficient\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-9\&quot; target=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;500\&quot; y=\&quot;660\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;560\&quot; y=\&quot;680\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;540\&quot; y=\&quot;670\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;635\&quot; y=\&quot;660\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;645\&quot; y=\&quot;650\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;630\&quot; y=\&quot;669\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;610\&quot; y=\&quot;659\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;570\&quot; y=\&quot;659\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;370\&quot; y=\&quot;739\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;690\&quot; y=\&quot;660\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-43\&quot; value=\&quot;19. Transacció completada&amp;lt;br&amp;gt;incorrectament\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot; source=\&quot;Sdb-hj05ttBLRFs4y2Tk-5\&quot; target=\&quot;aM9ryv3xv72pqoxQDRHE-6\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;310\&quot; y=\&quot;680.5\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;460\&quot; y=\&quot;700\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;380\&quot; y=\&quot;680\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;370\&quot; y=\&quot;670\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;425\&quot; y=\&quot;650\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;405\&quot; y=\&quot;640\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;365\&quot; y=\&quot;640\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;165\&quot; y=\&quot;720\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;500\&quot; y=\&quot;680.5\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-44\&quot; value=\&quot;\&quot; style=\&quot;line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;dashed=1;dashPattern=12 12;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;638\&quot; width=\&quot;710\&quot; height=\&quot;8\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-45\&quot; value=\&quot;[if saldo és suficient]\&quot; style=\&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;530\&quot; width=\&quot;80\&quot; height=\&quot;40\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-46\&quot; value=\&quot;[else]\&quot; style=\&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;\&quot; vertex=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry x=\&quot;10\&quot; y=\&quot;646\&quot; width=\&quot;80\&quot; height=\&quot;40\&quot; as=\&quot;geometry\&quot; &#x2F;&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-47\&quot; value=\&quot;18. Extreure diners\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;295\&quot; y=\&quot;629\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;270\&quot; y=\&quot;629\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;170\&quot; y=\&quot;619\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;250\&quot; y=\&quot;569\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;200\&quot; y=\&quot;519\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;90\&quot; y=\&quot;629\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;mxCell id=\&quot;Sdb-hj05ttBLRFs4y2Tk-48\&quot; value=\&quot;20. Extreure targeta\&quot; style=\&quot;html=1;verticalAlign=bottom;endArrow=block;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;\&quot; edge=\&quot;1\&quot; parent=\&quot;1\&quot;&gt;\n &lt;mxGeometry relative=\&quot;1\&quot; as=\&quot;geometry\&quot;&gt;\n &lt;mxPoint x=\&quot;295\&quot; y=\&quot;750\&quot; as=\&quot;sourcePoint\&quot; &#x2F;&gt;\n &lt;Array as=\&quot;points\&quot;&gt;\n &lt;mxPoint x=\&quot;270\&quot; y=\&quot;750\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;170\&quot; y=\&quot;740\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;250\&quot; y=\&quot;690\&quot; &#x2F;&gt;\n &lt;mxPoint x=\&quot;200\&quot; y=\&quot;640\&quot; &#x2F;&gt;\n &lt;&#x2F;Array&gt;\n &lt;mxPoint x=\&quot;90\&quot; y=\&quot;750\&quot; as=\&quot;targetPoint\&quot; &#x2F;&gt;\n &lt;&#x2F;mxGeometry&gt;\n &lt;&#x2F;mxCell&gt;\n &lt;&#x2F;root&gt;\n &lt;&#x2F;mxGraphModel&gt;\n &lt;&#x2F;diagram&gt;\n&lt;&#x2F;mxfile&gt;\n\n&quot;}"></div><script type="text/javascript" src="https://viewer.diagrams.net/js/viewer-static.min.js"></script>
<figcaption>Diagrama de seqüencia d'un caixer automàtic</figcaption>
1. L'actor o l'usuari que utilitza el caixer ha d'insertar la targeta banària.
2. En aquest moment, el caixer automàtic es connecta amb els servidors del banc per verificar la targeta.
3. El servidor del banc pot __respondre__ de dues maneres: si la targeta és vàlida o no. Depenent de la
resposta del servidor, es realitzaran unes accions o altres.
> Les __respostes__ s'indiquen amb una __fletxa discontínua__.
> Els __possibles camins__ s'han d'indicar mitjançant una __caixa que separa els diferents casos__.
4. _En cas que la targeta siga vàlida_, el caixer automàtic li demana el PIN a l'usuari.
5. _En cas contrari_, el caixer automàtic extrau la targeta.
6. L'usuari introdueix el PIN so·licitat al caixer automàtic.
7. El caixer verifica el PIN en el servidor.
8. Igual que abans, el servidor pot respondre de dues maneres: Que el PIN siga vàlid o no.
9. _En cas que el PIN siga vàlid_, el caixer automàtic li demana la quantitat a extraure a l'usuari.
10. _En cas contrari_, el caixer automàtic extrau la targeta.
11. L'usuari introdueix la quantitat que vol treure del caixer.
12. El caixer comença una transacció.
13. El servidor comprova si hi ha suficient saldo en el compte bancari.
14. Igual que abans, poden haver dos casos: Que hi haja suficient saldo o no.
15. _En cas que hi haja prou saldo_: S'actualizen els diners del compte.
16. Es completa l'actualització.
17. El servidor comunica al caixer que la transacció s'ha completat correctament.
18. El caixer treu el diners.
19. _En cas que no hi haja prou saldo_: El servidor comunica al caixer que no s'ha portat a terme la transacció i no es treuen els diners.
20. Per últim, el caixer expulsa la targeta.
> S'han dibuixat __barres d'activació__ durant el temps que cada element ha estat actiu en aquest procés.