From ad2733e3ae006f26a359337f1cd510fd72182d7c Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Wed, 11 Dec 2024 02:22:43 +0300 Subject: Auto-commit 2024-12-11 --- content/go/workflow.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'content/go/workflow.md') diff --git a/content/go/workflow.md b/content/go/workflow.md index 9b846bf..3ac4774 100644 --- a/content/go/workflow.md +++ b/content/go/workflow.md @@ -7,9 +7,9 @@ gomod = true outputs = ["html"] +++ -Simple state machine. Inspired by [Symfony Workflow](https://github.com/symfony/workflow). +Простой конечный автомат, похожий на [Symfony Workflow](https://github.com/symfony/workflow). -## Example usage +## Пример ```go o := new(ObjectImplementedPlaceer) @@ -33,7 +33,7 @@ w.GetEnabledTransitions(o) // []Place{"C"} w.DumpToDot() // See above ``` -## Dump result +## Дамп в формат dot ``` digraph { @@ -46,4 +46,15 @@ digraph { C -> Finish[label="C → Finish"]; D -> Finish[label="D → Finish"]; } -``` \ No newline at end of file +``` + +{{< graph >}} +flowchart TD + Start -->|Start → A| A + Start -->|Start → B| B + A -->|A → C| C + B -->|B → D| D + C -->|C → D| D + C -->|C → Finish| Finish + D -->|D → Finish| Finish +{{< /graph >}} -- cgit v1.2.3