Uses of Package
cloud.opencode.base.flow.model

Package
Description
Public API surface for the flow engine (4 services exposed to the host).
JSON DSL parsing for flow definitions (parser + validator + JSON Schema).
Domain events published by the flow engine.
Package-private engine internals (DefaultFlowEngine / StepEvaluator / TransitionResolver / HistoryWriter).
Domain models for the flow engine (immutable records).
Optional observability integration — v4 §9.1.
Seven approval operation handlers (approve / vote / reject / addSign / withdraw / transfer / circulate). 7 个审批动作处理器(同意 / 投票 / 驳回 / 加签 / 撤回 / 转办 / 抄送)。
Persistence layer (InMemory + JDBC repositories with dialect abstraction).
JDBC repository (MySQL / PostgreSQL / H2) with dialect abstraction and SqlBuilder.
In-memory repository implementation for unit tests and quick demos (M3).
Service Provider Interfaces (3 SPIs: AssigneeResolver / ExpressionEvaluator / CurrentUserProvider).