Interaction Overview
Combine activity-style control flow with interaction references to orchestrate complex multi-scenario workflows.
| 1 | dialect uml; |
| 2 | |
| 3 | uml::interaction_overview_diagram "E-Commerce Checkout Macro Orchestrator" { |
| 4 | schema { |
| 5 | control initial @Start; |
| 6 | interaction @authUser [label: "Authenticate Session & Token"]; |
| 7 | control decision @AuthCheck; |
| 8 | interaction @execCheckout [label: "Execute Distributed Checkout"]; |
| 9 | interaction @cancelOrder [label: "Cancel & Release Inventory Locks"]; |
| 10 | control merge @RejoinCompletion; |
| 11 | control final @EndSuccess; |
| 12 | } |
| 13 | |
| 14 | flow { |
| 15 | Start -> authUser; |
| 16 | authUser -> AuthCheck; |
| 17 | |
| 18 | AuthCheck { |
| 19 | if "validSession" -> execCheckout; |
| 20 | else -> cancelOrder; |
| 21 | } |
| 22 | |
| 23 | execCheckout -> RejoinCompletion; |
| 24 | cancelOrder -> RejoinCompletion; |
| 25 | |
| 26 | RejoinCompletion -> EndSuccess; |
| 27 | } |
| 28 | } |
| 29 | |
Errors: 0 | interaction-overview-diagram
Core Syntax Reference
| Construct | Purpose |
|---|---|
ref @AuthFlow [label: "ref Auth"]; | Reference reusable interaction fragments |
control decision @Check; | Branch between interaction scenarios |