Package cloud.opencode.base.flow.internal
package cloud.opencode.base.flow.internal
Package-private engine internals (DefaultFlowEngine / StepEvaluator / TransitionResolver / HistoryWriter).
包私有的引擎内部实现(默认引擎、节点判定器、流转路由器、历史写入器)。
- Since:
- JDK 25, opencode-base-flow V1.0.5
- Author:
- Leon Soo
-
ClassDescriptionDefault
FlowInstanceServiceimplementation.DefaultHistoryServiceimplementation — delegates to the repository with an optional engine-side authorisation check.DefaultTaskServiceimplementation.Cross-package bridge into the package-privateFlowEventBusso theoperation/package can publish domain events without exposing the underlying bus type.Internal append-only writer forHistoryRecords.Package-private utility that sanitises and validates user-supplied text fields (comment/reason/userId) before the engine persists them, per design v4 §7.3.Cross-package bridge into the package-privateJsonExtrashelper, so theoperation/package can serialiseextra_jsonpayloads without exposing the underlying helper type.Shared helper that materialises aStepinto one or more PENDINGTaskrows for an existingFlowInstance.Evaluates whether a givenStephas reached its terminal state given the current set ofTasks andVoteRecords in the repository.Three-valued evaluation result.Resolves "where to go next" given aFlowDefinitionand the current step, plus locates a sensible "previous approve / vote" target for reject.