a816c2413b
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
Worked example — the deal-lifecycle process
A worked process-modeling artifact: the lead→deal lifecycle as a BPMN-style
swimlane. Demonstrates the C10 modeling workflow. Status slugs are illustrative —
the source of truth for the funnel is db/schema.sql.
flowchart TD
subgraph Поставщик
A((Лид поступил)) --> B[Лид в проекте-канале]
end
subgraph Менеджер
B --> C{Лид валиден?}
C -->|нет| D((Отклонён))
C -->|да| E[Создать сделку — статус new]
E --> F[Квалификация]
F --> G{Квалифицирован?}
G -->|нет| H((Потерян — lost))
G -->|да| I[Работа по сделке — in_progress]
end
subgraph Система
I --> J{Итог сделки}
J -->|успех| K((Выиграна — won))
J -->|провал| H
K --> L[Списание по тарифу — LedgerService]
L --> M((Завершено))
end
How this was built
- process-analysis (discovery mode) reconstructed the as-is flow from
routes/*.php, the deal controllers, and the status enum indb/schema.sql. - process-modeling chose the swimlane artifact (three roles, branching) and wrote the BPMN structure.
- The mermaid skill rendered the source above.
- operations
process-docskill would wrap this into a full process document when one is needed.