简介 / IntroductionParallel activity diagrams express a scenario where multiple tasks execute concurrently and then converge. Both PlantUML and Mermaid support fork/join-style syntax, thoug...
简介 / Introduction并行活动图用于表达多个任务同时执行后汇合的场景。PlantUML 和 Mermaid 都支持 fork/join 语法,但细节差异较大。本文用同一个场景——“接收订单后同时执行库存检查与支付验证,最后汇总确认”——分别用两种引擎绘制,方便直接对比。
PlantUML 版12345678910111213@startuml|部门|start:接收订单...
简介 / IntroductionActivity diagrams model business processes in a system. The core elements are decision nodes (branching logic) and merge nodes (converging paths). Both are drawn as diamonds: ...
简介 / Introduction活动图(Activity Diagram)用于描述系统的业务流程,核心元素包括决策节点(decision node)和合并节点(merge node)。两者均以菱形表示:决策节点根据条件选择分支,合并节点将多条路径汇合为一。本文用同一个登录流程示例,分别用 PlantUML 和 Mermaid 实现,对比两者的表达方式和语法差异。
PlantUML...
简介 / IntroductionActivity diagrams describe the flow of actions in a business process. Swimlanes group actions by responsible party or system partition, making the flow clear at a glance. Plan...
简介 / Introduction活动图(Activity Diagram)用于描述业务流程中的动作流转。泳道(Swimlane)将动作分组到不同的责任人或系统分区,使流程一目了然。PlantUML 原生支持泳道语法;Mermaid 通过 flowchart 子图近似实现。
PlantUML 版PlantUML 用 |分区名| 语法声明泳道,每个分区内的动作属于该分区。
12345...
简介 / IntroductionA state machine models an object’s lifecycle as a set of states and transitions between them. An entry action fires automatically when entering a state; an exit action fires w...
简介 / Introduction状态机(State Machine)常用于描述对象在其生命周期内的状态流转。entry 动作在进入状态时自动执行,exit 动作在离开状态时自动执行,适用于初始化、资源申请、日志记录等场景。本文用同一个示例分别展示 PlantUUL 和 Mermaid 的写法,并做横向对比。
PlantUML 版123456789101112131415@star...
简介 / IntroductionState machines describe how an object transitions through a set of discrete states during its lifecycle. Two important pseudostates power most real-world models:
choice — con...
简介 / Introduction状态机(State Machine)常用于描述对象在其生命周期内的状态流转。除了普通的状态节点,还依赖两种重要的伪状态(Pseudostate):
choice — 条件分支,类似于 if/else,根据守卫条件选择下一个状态。
fork — 并行分支,同时从一点分叉出多个并发执行路径。
本文用同一个业务场景(订单处理)分别演示 PlantUM...