{"id":2114,"date":"2026-05-26T08:05:43","date_gmt":"2026-05-26T08:05:43","guid":{"rendered":"https:\/\/www.vpascode.com\/fr\/docs\/uncategorized\/mermaid-js-sequence-diagram-syntax-guide\/"},"modified":"2026-05-26T08:05:43","modified_gmt":"2026-05-26T08:05:43","slug":"mermaid-js-sequence-diagram-syntax-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/","title":{"rendered":"Guide de syntaxe des diagrammes de s\u00e9quence Mermaid.js"},"content":{"rendered":"<h2>Qu&#8217;est-ce qu&#8217;un diagramme de s\u00e9quence ?<\/h2>\n<p>Un <strong>diagramme de s\u00e9quence<\/strong> est un diagramme comportemental essentiel <strong>diagramme UML<\/strong> con\u00e7u pour visualiser le flux chronologique des messages, des appels de fonctions et des charges utiles de donn\u00e9es entre diff\u00e9rentes entit\u00e9s syst\u00e8me au fil d&#8217;un timeline lin\u00e9aire. Reconnu comme un type fondamental <strong>type de diagramme UML<\/strong>, il mod\u00e9lise les interactions en temps r\u00e9el en empilant les composants syst\u00e8me selon l&#8217;axe X sous forme de lignes de vie verticales et en suivant les \u00e9changes de messages selon l&#8217;axe Y. Ce sch\u00e9ma est inestimable pour les d\u00e9veloppeurs d\u00e9boguant des \u00e9changes d&#8217;API distribu\u00e9es, des chemins d&#8217;orchestration de microservices ou des flux d&#8217;authentification utilisateur en temps r\u00e9el.<\/p>\n<p>Avec <strong>Mermaid.js<\/strong>, vous pouvez scripter des processus temporels complexes \u00e0 l&#8217;aide d&#8217;une structure de texte intuitive. Le moteur g\u00e8re automatiquement l&#8217;espacement vertical, ajuste les alignements des fl\u00e8ches de message et dessine proprement les blocs d&#8217;activation en temps r\u00e9el sur votre canevas.<\/p>\n<h2>Guide de syntaxe fondamentale : \u00e9l\u00e9ments et constructions<\/h2>\n<p>Pour concevoir un diagramme de s\u00e9quence UML pr\u00e9cis et facilement lisible dans Mermaid, vous devez ma\u00eetriser les d\u00e9clarations de participants, les variantes des fl\u00e8ches de message, les lignes de vie explicites et les structures de blocs conditionnels.<\/p>\n<h3>1. D\u00e9clarer les participants et les acteurs<\/h3>\n<p>Vous d\u00e9clarez une entit\u00e9 syst\u00e8me standard en utilisant le mot-cl\u00e9 <code>participant<\/code> mot-cl\u00e9. Si l&#8217;entit\u00e9 repr\u00e9sente un utilisateur final humain ou un op\u00e9rateur externe, utilisez le mot-cl\u00e9 <code>acteur<\/code> mot-cl\u00e9 pour afficher une ic\u00f4ne standard de figure en b\u00e2ton sur le canevas :<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgsTkkvwiBeeczNS8EohIQWJRSWZyZkFiXomCY4CnQmKxgntiSWp5YqVCUH5pSWoRAF8GF\/U=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u00c9diter Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNolyjsKgEAMRdFecA\/ZimhjJ+4gxIcEMh8zmf076C0vp+HpyIJN+XZO80QjlkB3Wk2R41+VPVS0cg5ajp2kpAQ6S\/\/khQFag8MML4dLHFk=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    acteur Client\r\n    participant API comme Routeur de passerelle<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNolyjsKgEAMRdFecA\/ZimhjJ+4gxIcEMh8zmf076C0vp+HpyIJN+XZO80QjlkB3Wk2R41+VPVS0cg5ajp2kpAQ6S\/\/khQFag8MML4dLHFk=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgsTkkvwiBeeczNS8EohIQWJRSWZyZkFiXomCY4CnQmKxgntiSWp5YqVCUH5pSWoRAF8GF\/U=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u00c9diter Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"WdDXIln\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-623\" decoding=\"async\" fetchpriority=\"high\" height=\"171\" sizes=\"(max-width: 450px) 100vw, 450px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190364bd762.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190364bd762.png 450w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190364bd762-300x114.png 300w\" width=\"450\"\/><\/p>\n<p><em>Astuce pro :<\/em> Utilisez le mot-cl\u00e9 <code>comme<\/code> pour mapper des noms de composants longs \u00e0 des alias internes compacts, en gardant vos scripts de messages concis et lisibles.<\/p>\n<h3>2. Formater les fl\u00e8ches de message<\/h3>\n<p>Le type de ligne et de t\u00eate de fl\u00e8che que vous utilisez d\u00e9termine le style de communication entre vos participants syst\u00e8me :<\/p>\n<ul>\n<li><code>-&gt;&gt;<\/code> **Appel synchrone :** Une ligne pleine avec une fl\u00e8che remplie. Repr\u00e9sente une demande bloquante qui attend la fin de l&#8217;ex\u00e9cution.<\/li>\n<li><code>--&gt;<\/code> **Ligne de r\u00e9ponse :** Une ligne pointill\u00e9e avec une fl\u00e8che ouverte. Utilis\u00e9e pour renvoyer des charges utiles de donn\u00e9es ou des jetons de confirmation.<\/li>\n<li><code>-&gt;<\/code> **Appel asynchrone :** Une ligne pleine avec une fl\u00e8che ouverte. Indique un message non bloquant ou une diffusion d&#8217;\u00e9v\u00e9nement.<\/li>\n<\/ul>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAAseCAl07u+DUorLUIiuFIJCS4hKFgMTKnPzEFIgSiKSurh1QrZWCkYGBgr83UGVxQX5ecSoAn9Ua8A==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAAseCAl07u+DUorLU0iIFKwXnjMSi9FSF0pLMnFSFlFSFIqCmw6tKUiGqoep0de2A+oCqgw6vLMjPK05VMDIwUPD3BgBYhyB0\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    App-&gt;&gt;Serveur : Charge utile de requ\u00eate\r\n    Serveur--&gt;App : R\u00e9ponse 200 OK<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAAseCAl07u+DUorLU0iIFKwXnjMSi9FSF0pLMnFSFlFSFIqCmw6tKUiGqoep0de2A+oCqgw6vLMjPK05VMDIwUPD3BgBYhyB0\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAAseCAl07u+DUorLUIiuFIJCS4hKFgMTKnPzEFIgSiKSurh1QrZWCkYGBgr83UGVxQX5ecSoAn9Ua8A==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"jLtFHya\"><img alt=\"\" class=\"alignnone size-full wp-image-624\" decoding=\"async\" height=\"267\" sizes=\"(max-width: 450px) 100vw, 450px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190369d9ad7.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190369d9ad7.png 450w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190369d9ad7-300x178.png 300w\" width=\"450\"\/><\/p>\n<h3>3. Gestion des barres d&#8217;activation de la ligne de vie<\/h3>\n<p>Pour montrer pr\u00e9cis\u00e9ment quand un composant syst\u00e8me ex\u00e9cute activement une t\u00e2che ou utilise la m\u00e9moire du thread, utilisez les commandes<code>activer<\/code> et <code>d\u00e9sactiver<\/code> . En alternative, vous pouvez ajouter un signe plus (<code>+<\/code>) ou un signe moins (<code>-<\/code>) directement \u00e0 vos cibles de message comme raccourci visuel rapide :<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNolzDEKwzAMBdC90DtoyVR8gQxekgOU5ATCfILAcagku\/T2Degvf\/iPb\/h0tIJV+FA+nw+6s1RB85Tza4cO6ExvvQrMaGXnMNNEMZIYtetLQ6xzrT\/i4jIQKkhKOcXnTBu8a7vLenX7AzPwKV4=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNotjTEOwjAQBHsk\/nBNKuQPULiBkgr4wCksyJJ9EXfn\/CnvyMdiyd56dsbwr5AZ98Q\/5XI+UdstJ4iHGC8v6IqqdKW3cnIoZRh9FpF9g3V6mugBskHCnAoncQiL05qsImeUJiSePX37aYhDiKHXWuIJX6rKiOi+Wc3ObgfX+Tjn\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    Client-&gt;&gt;+Serveur : Traiter les donn\u00e9es\r\n    %% Le serveur est maintenant visuellement actif\r\n    Serveur--&gt;-Client : Retourner les r\u00e9sultats<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNotjTEOwjAQBHsk\/nBNKuQPULiBkgr4wCksyJJ9EXfn\/CnvyMdiyd56dsbwr5AZ98Q\/5XI+UdstJ4iHGC8v6IqqdKW3cnIoZRh9FpF9g3V6mugBskHCnAoncQiL05qsImeUJiSePX37aYhDiKHXWuIJX6rKiOi+Wc3ObgfX+Tjn\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNolzDEKwzAMBdC90DtoyVR8gQxekgOU5ATCfILAcagku\/T2Degvf\/iPb\/h0tIJV+FA+nw+6s1RB85Tza4cO6ExvvQrMaGXnMNNEMZIYtetLQ6xzrT\/i4jIQKkhKOcXnTBu8a7vLenX7AzPwKV4=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"cOetWMX\"><img alt=\"\" class=\"alignnone size-full wp-image-625\" decoding=\"async\" height=\"267\" sizes=\"(max-width: 450px) 100vw, 450px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19036e236c9.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19036e236c9.png 450w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19036e236c9-300x178.png 300w\" width=\"450\"\/><\/p>\n<h3>4. Structuration des conditions et alternatives (Alt, Opt, Boucle)<\/h3>\n<p>Pour g\u00e9rer la logique d&#8217;ex\u00e9cution conditionnelle, les \u00e9valuations de jetons ou les r\u00e9essais r\u00e9p\u00e9t\u00e9s de requ\u00eates, enveloppez vos scripts de message dans des fragments de bloc standards :<\/p>\n<ul>\n<li><code>alt \/ sinon<\/code> \u2014 \u00c9value des chemins conditionnels (similaire aux blocs de code if\/else).<\/li>\n<li><code>opt<\/code> \u2014 D\u00e9finit une \u00e9tape facultative qui s&#8217;ex\u00e9cute uniquement sous des crit\u00e8res sp\u00e9cifiques.<\/li>\n<li><code>boucle<\/code> \u2014 R\u00e9p\u00e8te une s\u00e9quence d&#8217;ex\u00e9cution jusqu&#8217;\u00e0 ce qu&#8217;une condition soit satisfaite.<\/li>\n<\/ul>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgpz8\/AIF17LUokoFYwOF4tTk\/LyUYogUCDjnZKbmleja2QWnFgEVWSl4pCYWlSSlJpYoBGTmpUMUpualAABAyxwZ\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgqT80uScVIWQ\/NKS1GKFHCA2NlAoTk3Oz0tJLYYoAQHnnMzUvBJdO7vg1KKy1NIiBSuFgMy8dIWUVIWkxJKS1FygLIiTfHRyaRFEW1pmHgBDUiR+\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    boucle Toutes les 30 secondes\r\n        Client-&gt;&gt;Serveur : Ping de battement de c\u0153ur\r\n    fin<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgqT80uScVIWQ\/NKS1GKFHCA2NlAoTk3Oz0tJLYYoAQHnnMzUvBJdO7vg1KKy1NIiBSuFgMy8dIWUVIWkxJKS1FygLIiTfHRyaRFEW1pmHgBDUiR+\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgpz8\/AIF17LUokoFYwOF4tTk\/LyUYogUCDjnZKbmleja2QWnFgEVWSl4pCYWlSSlJpYoBGTmpUMUpualAABAyxwZ\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"VlRPVlQ\"><img loading=\"lazy\" alt=\"\" class=\"alignnone size-full wp-image-626\" decoding=\"async\" height=\"274\" loading=\"lazy\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190372961a2.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190372961a2.png 450w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a190372961a2-300x183.png 300w\" width=\"450\"\/><\/p>\n<h2>Meilleures pratiques pour des chronologies de s\u00e9quence propres<\/h2>\n<ul>\n<li><strong>Gardez les lignes de vie d\u00e9gag\u00e9es :<\/strong> \u00c9vitez de lister des dizaines de micro-entit\u00e9s sur l&#8217;axe X. Si un processus interagit avec des classes auxiliaires mineures, abstrayez-les derri\u00e8re une fronti\u00e8re syst\u00e8me de haut niveau comme <code>[Worker d'authentification]<\/code> ou <code>[Pool de cache]<\/code>.<\/li>\n<li><strong>Libellez les codes d&#8217;\u00e9tat explicitement :<\/strong> Lorsque vous \u00e9crivez les retours de r\u00e9ponse (<code>--&gt;<\/code>), ne r\u00e9digez pas simplement \u00ab Retourner des donn\u00e9es \u00bb. Marquez le chemin avec des codes HTTP explicites ou des types d&#8217;\u00e9v\u00e9nements (par exemple, <code>\"201 Cr\u00e9\u00e9 (jeton JWT)\"<\/code>) pour donner aux ing\u00e9nieurs un contexte pr\u00e9cis.<\/li>\n<li><strong>Impl\u00e9mentez des notes pour les calculs complexes :<\/strong> Utilisez les directives <code>Note au-dessus<\/code>, <code>Note \u00e0 gauche de<\/code>, ou <code>Note \u00e0 droite de<\/code> pour documenter les op\u00e9rations non visuelles, comme les \u00e9tapes internes de chiffrement ou le hachage des donn\u00e9es de base de donn\u00e9es.<\/li>\n<\/ul>\n<h2>Exemples r\u00e9els de diagrammes de s\u00e9quence Mermaid.js<\/h2>\n<h3>Exemple 1 : Flux d&#8217;\u00e9change de jeton OAuth2 s\u00e9curis\u00e9 (blocs d&#8217;activation et alternatifs)<\/h3>\n<p>Ce sch\u00e9ma fonctionnel mod\u00e9lise une s\u00e9quence de connexion utilisateur s\u00e9curis\u00e9e. Il montre comment combiner des acteurs humains, des lignes de vie syst\u00e8me explicites et des chemins de validation complexes en utilisant un bloc alt\/else.<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNptUstOAjEU3Zv4DzcsjMYQ8bFiQTJBEjAaCYguzaW9MA0z7XjbAfXr7WNIBnA208d59bSWvmrSgh4VrhnL8zPwHwpnGBaWGNDCSMs4TnsVslNCVagdZFUVAC9mqQqKs2GhSLt\/kLXLAzT8ezCRHqTcD0zZbJUM0okSbLqDwbWX6gctsYHOs1krDTvlBV4DvZOgHhKRfqUPM5KKSbgEEzHEp5JwAVaYihqGh3Y9J5gEivbGkNQn2hGvUNBBjKQ9r5elcjBkiqmxsAnUEt1D37FQEh3BFK3dGZYwRpu34VgcKEHGlFhpux0zdnDfuzs6XGxyaCS1GLGKFGH0LXLUa4oQWPlrzIQga+HNbEifunSjzYxczRqePt4SDi4nMg6uDl2O24tPxBuY2t\/x2JRNKCos+U634WCnxZ0csnF\/6N3CQqPfMax+ScKI2fBJgG5KMM\/NDjp7k7CmsaSbffMdyAri5iX6sH\/tqOE0\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqFk01uE0EQhfeRcoeSNwZFlszPyotIERFSEASJBFiiSk+NXdDTPfRPhLgBNyHn8MV4PT1JxsFRvBq16r3v1et2lJ9ZnJFT5XXg7vCA8GOTJAf6nNRq5OHb+K6TnZNWHds633NIarRnl+ik78fhN1alHlg1nNQ7+uCv1MoeUU6bUfXW5+A0xoJo5trAQtP2ZhhZHh5U7STH4vj4CIhVwWGV3xQhnF0I7JwTLBKIr8XQx2Iwq3LMDzKcrOiTNBowWPINk2bI\/U0bkkTR+H4MXMYX0E3gKzppWzUbQOxcHWAtG6FmpP+C577AFXzhcycpBSErkeqmraKOWDUT6q3kC1vMASa0YbPhNViZOp8Ksme0NpWyTfT+gTVFj76vB5+RM91taHLayKvly7EVD0Qz55x8KJvcrXZfaM24\/YNgbl1TDip0UbbMjr5LgidcjNn+3YNfjPxUHkF1qJJ3Xy\/p2Vlz6X+Ie77LffxGGJWspeKyqC1d4ZH1CVnuFdUtqgPmbNqUuqdquo2ZnZCEUJ7s6+ULOi8vqfa0vfkv7OKx98NWAqLNzn2HzJOE5HfvGMmMD+WGxveMv+I\/\/co8iA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    acteur Utilisateur comme Utilisateur final\r\n    participant App comme Client Application Mobile\r\n    participant Auth comme Fournisseur d'identit\u00e9 Auth0\r\n\r\n    Utilisateur-&gt;&gt;+App: Cliquez sur \"Se connecter avec OAuth\"\r\n    App-&gt;&gt;+Auth: Redirection avec client_id et scope\r\n    Auth--&gt;&gt;Utilisateur: Afficher l'interface de connexion\r\n    Utilisateur-&gt;&gt;Auth: Soumettre les identifiants\r\n    \r\n    Auth-&gt;&gt;Auth: Valider le hachage du mot de passe\r\n    \r\n    alt Les identifiants sont valides\r\n        Auth--&gt;&gt;App: Redirection 302 avec code d'autorisation\r\n        App-&gt;&gt;Auth: \u00c9changer le code contre un jeton d'acc\u00e8s\r\n        Auth--&gt;&gt;-App: Retourner le jeton JWT (IdToken)\r\n        App--&gt;&gt;Utilisateur: Afficher la page d'accueil du compte utilisateur\r\n    sinon Identifiants invalides\r\n        Auth--&gt;&gt;App: Retourner une erreur 401 Non autoris\u00e9\r\n        App--&gt;&gt;-Utilisateur: Afficher l'alerte \"Nom d'utilisateur ou mot de passe incorrect\"\r\n    fin<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqFk01uE0EQhfeRcoeSNwZFlszPyotIERFSEASJBFiiSk+NXdDTPfRPhLgBNyHn8MV4PT1JxsFRvBq16r3v1et2lJ9ZnJFT5XXg7vCA8GOTJAf6nNRq5OHb+K6TnZNWHds633NIarRnl+ik78fhN1alHlg1nNQ7+uCv1MoeUU6bUfXW5+A0xoJo5trAQtP2ZhhZHh5U7STH4vj4CIhVwWGV3xQhnF0I7JwTLBKIr8XQx2Iwq3LMDzKcrOiTNBowWPINk2bI\/U0bkkTR+H4MXMYX0E3gKzppWzUbQOxcHWAtG6FmpP+C577AFXzhcycpBSErkeqmraKOWDUT6q3kC1vMASa0YbPhNViZOp8Ksme0NpWyTfT+gTVFj76vB5+RM91taHLayKvly7EVD0Qz55x8KJvcrXZfaM24\/YNgbl1TDip0UbbMjr5LgidcjNn+3YNfjPxUHkF1qJJ3Xy\/p2Vlz6X+Ie77LffxGGJWspeKyqC1d4ZH1CVnuFdUtqgPmbNqUuqdquo2ZnZCEUJ7s6+ULOi8vqfa0vfkv7OKx98NWAqLNzn2HzJOE5HfvGMmMD+WGxveMv+I\/\/co8iA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNptUstOAjEU3Zv4DzcsjMYQ8bFiQTJBEjAaCYguzaW9MA0z7XjbAfXr7WNIBnA208d59bSWvmrSgh4VrhnL8zPwHwpnGBaWGNDCSMs4TnsVslNCVagdZFUVAC9mqQqKs2GhSLt\/kLXLAzT8ezCRHqTcD0zZbJUM0okSbLqDwbWX6gctsYHOs1krDTvlBV4DvZOgHhKRfqUPM5KKSbgEEzHEp5JwAVaYihqGh3Y9J5gEivbGkNQn2hGvUNBBjKQ9r5elcjBkiqmxsAnUEt1D37FQEh3BFK3dGZYwRpu34VgcKEHGlFhpux0zdnDfuzs6XGxyaCS1GLGKFGH0LXLUa4oQWPlrzIQga+HNbEifunSjzYxczRqePt4SDi4nMg6uDl2O24tPxBuY2t\/x2JRNKCos+U634WCnxZ0csnF\/6N3CQqPfMax+ScKI2fBJgG5KMM\/NDjp7k7CmsaSbffMdyAri5iX6sH\/tqOE0\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"zhyELct\"><img loading=\"lazy\" alt=\"\" class=\"alignnone size-full wp-image-627\" decoding=\"async\" height=\"829\" loading=\"lazy\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1903768417b.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1903768417b.png 939w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1903768417b-300x265.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1903768417b-768x678.png 768w\" width=\"939\"\/><\/p>\n<p><strong>Analyse syntaxique :<\/strong> Ce chronogramme suit une poign\u00e9e de main \u00e0 plusieurs parties. Le <code>alt \/ sinon<\/code> conteneur met clairement en \u00e9vidence les chemins de validation binaires, garantissant que les \u00e9tats d&#8217;erreur sont enti\u00e8rement document\u00e9s aux c\u00f4t\u00e9s du parcours normal.<\/p>\n<h3>Exemple 2 : Validation de commande avec inventaire distribu\u00e9 (processus parall\u00e8les et notes)<\/h3>\n<p>Ce sch\u00e9ma syst\u00e8me avanc\u00e9 d\u00e9crit un pipeline de validation de commande pour une e-commerce d&#8217;entreprise. Il utilise des blocs parall\u00e8les (<code>par<\/code>) pour montrer les routines d&#8217;envoi d&#8217;API concurrentes et g\u00e9rer les notes de verrouillage de base de donn\u00e9es \u00e0 travers la topologie.<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNplkUFrwkAQhe+C\/2GOliJIjx4EibUIpRWF9jxuJsniJpvOTmzTX99ZF43UPexC8s3Me28CfXXUGFpZLBnr8Qj0tMhijW2xEfikA2A4P2v2jVCT30PvnEdIH2K9TUVBGMXzPbppThHVhxoFetgTn6yhe3KLfST1qRWFFxT6xn48SqQKmi4WjzpyDvvuUFuBrCJz9J3ALpoKksA3LwT+dBam7AexLXrYCNWwF2+OsDyhdXiwzkqfSq5aYGVDi2IqyHxjOuYoZLndQIbOhYTFo52jGDU1h9fYc7AXB92Q+mM6XUzPUgZoR0FToBwmSVLsQflDKsNL4jeTNJQ5LDupPNtfgowpjwGg7iGrkEsaKhS9TsywlY5JAzOGQig6B5PE6xpE3HXmdcvp9q2ug32sgaVz3qBY38Bag7vxdk6abVkJ+CKl\/fxDpotfvXMHVGcBSwRbqKkejIYIxdDj39BoVYXroufwNJtdRA9r1p0UlmvK\/wCHINpF\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNplksFu2zAMhu8F+g68pcNgoNgxhwDF1kOAYQ0QoDszMpMQkyWNkoz1bXasn8MvNkp2vbTRUfp\/8uNPRfqdyRn6xngS7G5vQE9ASWw4oEvwkw5gfNcRbF0iOaKhcnctfJJ2Fj6JOVNMgomyQEv1Gl1L8dq1df3s2pP0rMXbFbueXEIWutbv8GXW7zBGErKWSouATJ26bm8mjyI2m81nhVrD3ueOUhICi6qtKMXTo+UWE3s3eX74RIC5UdCYY1FU+\/M4CB+ZpNo5Bu\/4wJbTOECbISZvfqk4QsW0b1Mu7PDoev9CMmlCIBvhYbfVMZzJIgo9O8rRjoVbY9HGJOIz64Ta+qI+kIOPGZWjpqbZNBV6u7yDjIMG1Svt3cTav9Udh0+Tm9IVgQa9hoecvHCs\/SFoITu+9jXnko7GYZSJ4IDOvEdR94LyFUPKE0eOkQnuzBnlVC9OykAzxJHdZXI+JPhOoN+I0\/+WK7TWm7o0GAdz9vmia13g+Bda8epZFvj4R5U5TQuMeNItrtC5bKcykSG7aTHvS34AKsHoTPqz1vDl\/h722ZjxNcLz8o3KSo8snc70D+ckHWk=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    participant Web comme Interface Web\r\n    participant Ord comme Orchestrateur de commandes\r\n    participant Inv comme Service d'inventaire\r\n    participant Pay comme Passerelle de paiement\r\n\r\n    Web-&gt;&gt;+Ord: Soumettre la demande de validation\r\n    Note au-dessus de Ord: V\u00e9rifier la disponibilit\u00e9 du stock des articles\r\n    \r\n    par Envoyer des appels API concurrents\r\n        Ord-&gt;&gt;+Inv: Verrouiller les articles en inventaire\r\n        Inv--&gt;-Ord: Inventaire r\u00e9serv\u00e9 (stock verrouill\u00e9)\r\n    et\r\n        Ord-&gt;&gt;+Pay: Autoriser le pr\u00e9l\u00e8vement de la carte bancaire\r\n        Pay--&gt;-Ord: Capture r\u00e9ussie (charge r\u00e9gl\u00e9e)\r\n    fin\r\n    \r\n    opt Le traitement de l'allocation \u00e9choue\r\n        Note \u00e0 droite de Ord: Ex\u00e9cuter la saga d'annulation si un appel \u00e9choue\r\n    fin\r\n    \r\n    Ord--&gt;-Web: 200 Succ\u00e8s Validation confirm\u00e9e<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNplksFu2zAMhu8F+g68pcNgoNgxhwDF1kOAYQ0QoDszMpMQkyWNkoz1bXasn8MvNkp2vbTRUfp\/8uNPRfqdyRn6xngS7G5vQE9ASWw4oEvwkw5gfNcRbF0iOaKhcnctfJJ2Fj6JOVNMgomyQEv1Gl1L8dq1df3s2pP0rMXbFbueXEIWutbv8GXW7zBGErKWSouATJ26bm8mjyI2m81nhVrD3ueOUhICi6qtKMXTo+UWE3s3eX74RIC5UdCYY1FU+\/M4CB+ZpNo5Bu\/4wJbTOECbISZvfqk4QsW0b1Mu7PDoev9CMmlCIBvhYbfVMZzJIgo9O8rRjoVbY9HGJOIz64Ta+qI+kIOPGZWjpqbZNBV6u7yDjIMG1Svt3cTav9Udh0+Tm9IVgQa9hoecvHCs\/SFoITu+9jXnko7GYZSJ4IDOvEdR94LyFUPKE0eOkQnuzBnlVC9OykAzxJHdZXI+JPhOoN+I0\/+WK7TWm7o0GAdz9vmia13g+Bda8epZFvj4R5U5TQuMeNItrtC5bKcykSG7aTHvS34AKsHoTPqz1vDl\/h722ZjxNcLz8o3KSo8snc70D+ckHWk=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNplkUFrwkAQhe+C\/2GOliJIjx4EibUIpRWF9jxuJsniJpvOTmzTX99ZF43UPexC8s3Me28CfXXUGFpZLBnr8Qj0tMhijW2xEfikA2A4P2v2jVCT30PvnEdIH2K9TUVBGMXzPbppThHVhxoFetgTn6yhe3KLfST1qRWFFxT6xn48SqQKmi4WjzpyDvvuUFuBrCJz9J3ALpoKksA3LwT+dBam7AexLXrYCNWwF2+OsDyhdXiwzkqfSq5aYGVDi2IqyHxjOuYoZLndQIbOhYTFo52jGDU1h9fYc7AXB92Q+mM6XUzPUgZoR0FToBwmSVLsQflDKsNL4jeTNJQ5LDupPNtfgowpjwGg7iGrkEsaKhS9TsywlY5JAzOGQig6B5PE6xpE3HXmdcvp9q2ug32sgaVz3qBY38Bag7vxdk6abVkJ+CKl\/fxDpotfvXMHVGcBSwRbqKkejIYIxdDj39BoVYXroufwNJtdRA9r1p0UlmvK\/wCHINpF\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"DDTNVua\"><img loading=\"lazy\" alt=\"\" class=\"alignnone size-full wp-image-628\" decoding=\"async\" height=\"692\" loading=\"lazy\" sizes=\"auto, (max-width: 1090px) 100vw, 1090px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19037c84393.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19037c84393.png 1090w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19037c84393-300x190.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19037c84393-1024x650.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a19037c84393-768x488.png 768w\" width=\"1090\"\/><\/p>\n<p><strong>Analyse syntaxique :<\/strong> Le <code>par \/ et<\/code> conteneur indique au moteur de regrouper les ex\u00e9cutions parall\u00e8les, en documentant les op\u00e9rations backend concurrentes. Le <code>Note au-dessus de<\/code> et <code>Note \u00e0 droite de<\/code> balises injectent des explications techniques d&#8217;ex\u00e9cution directement dans la grille du canevas, aidant les \u00e9quipes \u00e0 comprendre les transactions en arri\u00e8re-plan comme le verrouillage des donn\u00e9es et les sagas d&#8217;annulation, sans encombrer les fl\u00e8ches principales des messages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qu&#8217;est-ce qu&#8217;un diagramme de s\u00e9quence ? Un diagramme de s\u00e9quence est un diagramme comportemental essentiel diagramme UML con\u00e7u pour visualiser le flux chronologique des messages, des appels de fonctions et des charges utiles de donn\u00e9es entre diff\u00e9rentes entit\u00e9s syst\u00e8me au&#8230;<\/p>\n","protected":false},"author":4,"featured_media":2115,"parent":0,"menu_order":3,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-2114","ld_docs","type-ld_docs","status-publish","has-post-thumbnail","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mermaid Sequence Diagram | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/05\/img_6a19037c84393-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1090\" \/>\n\t<meta property=\"og:image:height\" content=\"692\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/\",\"name\":\"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/05\\\/img_6a19037c84393-1.png\",\"datePublished\":\"2026-05-26T08:05:43+00:00\",\"description\":\"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/05\\\/img_6a19037c84393-1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/05\\\/img_6a19037c84393-1.png\",\"width\":1090,\"height\":692},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Guide de syntaxe des diagrammes de s\u00e9quence Mermaid.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide","description":"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/","og_locale":"fr_FR","og_type":"article","og_title":"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide","og_description":"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/","og_site_name":"VPasCode","og_image":[{"width":1090,"height":692,"url":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/05\/img_6a19037c84393-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/","url":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/","name":"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/05\/img_6a19037c84393-1.png","datePublished":"2026-05-26T08:05:43+00:00","description":"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/05\/img_6a19037c84393-1.png","contentUrl":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/05\/img_6a19037c84393-1.png","width":1090,"height":692},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-sequence-diagram-syntax-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/fr\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Guide de syntaxe des diagrammes de s\u00e9quence Mermaid.js"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/fr\/#website","url":"https:\/\/www.vpascode.com\/fr\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/fr\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.vpascode.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_docs\/2114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/users\/4"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/media\/2115"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/media?parent=2114"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_collection?post=2114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}