Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACT_ADDSIGN_DEPTH_EXCEEDED - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Add-sign chain exceeded the configured depth limit.
- ACT_INVALID_REJECT_TARGET - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Reject target step id is invalid (not visited in history).
- ACT_NOT_ALLOWED - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
The requested action is not permitted at the current step.
- ACT_WITHDRAW_FORBIDDEN - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Withdraw failed due to
withdraw-policyconstraint. - action() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
actionrecord component. - Action - Enum Class in cloud.opencode.base.flow.model
-
Action types recorded in
HistoryRecord. - ACTIVE - Enum constant in enum class cloud.opencode.base.flow.model.FlowStatus
-
Active — may be used to start new instances.
- ADD_SIGN - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Add additional approvers (after-sign).
- addSign(String, String, List, String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Add-sign action.
- addSign(String, String, List, String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- addsignDepth() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
addsignDepthrecord component. - AddSignOperation - Class in cloud.opencode.base.flow.operation
-
Add-sign action — appends additional approvers to the current step (v4 §8.5).
- AddSignOperation(FlowRepository, HistoryWriter, TransitionResolver, StepEntry) - Constructor for class cloud.opencode.base.flow.operation.AddSignOperation
-
Construct an add-sign operation with the default max-depth read once from system properties (v4 D22 — frozen at construction).
- AddSignOperation(FlowRepository, HistoryWriter, TransitionResolver, StepEntry, int) - Constructor for class cloud.opencode.base.flow.operation.AddSignOperation
-
Test-only constructor with explicit max-depth.
- AGREE - Enum constant in enum class cloud.opencode.base.flow.model.VoteOpinion
-
Vote in favour.
- ALL - Enum constant in enum class cloud.opencode.base.flow.model.Strategy
-
All voters must vote AGREE.
- ANY - Enum constant in enum class cloud.opencode.base.flow.model.Strategy
-
Any single AGREE vote passes.
- appendHistory(HistoryRecord) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Appends a new history row.
- appendHistory(HistoryRecord) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- appendHistory(HistoryRecord) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- approve(String, String, String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Approve action.
- approve(String, String, String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- APPROVE - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Approver agreed.
- APPROVE - Enum constant in enum class cloud.opencode.base.flow.model.StepType
-
Approve step: one or more approvers, gated by
mode. - APPROVED - Enum constant in enum class cloud.opencode.base.flow.internal.StepEvaluator.StepEvaluation
-
Step approved overall. — 节点整体通过。
- APPROVED - Enum constant in enum class cloud.opencode.base.flow.model.TaskOutcome
-
The assignee approved (or voted AGREE).
- ApproveOperation - Class in cloud.opencode.base.flow.operation
-
Approve action — marks the caller's task DONE+APPROVED, evaluates the step and either advances the instance (next step / END) or stays put for further approvals (v4 §8.2 / §8.3).
- ApproveOperation(FlowRepository, HistoryWriter, StepEvaluator, TransitionResolver, StepEntry) - Constructor for class cloud.opencode.base.flow.operation.ApproveOperation
-
Construct an approve operation with a no-op
FlowMetrics. - ApproveOperation(FlowRepository, HistoryWriter, StepEvaluator, TransitionResolver, StepEntry, FlowMetrics) - Constructor for class cloud.opencode.base.flow.operation.ApproveOperation
-
Construct an approve operation with explicit
FlowMetrics. - Assignee - Record Class in cloud.opencode.base.flow.model
-
Participant descriptor on a step.
- Assignee(AssigneeType, String) - Constructor for record class cloud.opencode.base.flow.model.Assignee
-
Compact constructor that validates inputs.
- AssigneeDsl(String, String) - Constructor for record class cloud.opencode.base.flow.dsl.FlowDsl.AssigneeDsl
-
Creates an instance of a
AssigneeDslrecord class. - assigneeId() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
assigneeIdrecord component. - AssigneeResolver - Interface in cloud.opencode.base.flow.spi
-
Resolves an assignee declaration into a concrete list of user IDs.
- assignees() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Returns the value of the
assigneesrecord component. - assignees() - Method in record class cloud.opencode.base.flow.model.Step
-
Returns the value of the
assigneesrecord component. - AssigneeType - Enum Class in cloud.opencode.base.flow.model
-
Type discriminator of an
Assignee.
B
- BaseObservabilityFlowMetrics - Class in cloud.opencode.base.flow.observability
-
FlowMetricsadapter that forwards every event into aMetricRegistryfromopencode-base-observability. - BaseObservabilityFlowMetrics(MetricRegistry) - Constructor for class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
-
Constructs an adapter around the given registry.
- booleanType() - Method in class cloud.opencode.base.flow.persistence.jdbc.H2Dialect
- booleanType() - Method in interface cloud.opencode.base.flow.persistence.jdbc.JdbcDialect
-
Column type for boolean columns (e.g.
- booleanType() - Method in class cloud.opencode.base.flow.persistence.jdbc.MySqlDialect
- booleanType() - Method in class cloud.opencode.base.flow.persistence.jdbc.PostgresDialect
C
- cacheCapacity() - Method in class cloud.opencode.base.flow.dsl.DslParser
-
Returns the frozen cache capacity.
- cacheSize() - Method in class cloud.opencode.base.flow.dsl.DslParser
-
Returns the size of the parse cache (mainly for tests).
- CANCEL - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Cancellation marker (e.g. orphan task wiped after reject).
- cancelAllTasksForStep(String, String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Bulk-transitions every task under
(instanceId, stepId)whose current status is notTaskStatus.CANCELEDinto theTaskStatus.CANCELEDstate — including DONE / REJECTED rows from a prior approval round. - cancelAllTasksForStep(String, String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- cancelAllTasksForStep(String, String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- CANCELED - Enum constant in enum class cloud.opencode.base.flow.model.TaskStatus
-
Canceled — task voided by the engine (e.g. step closed by another assignee).
- cancelOtherPendingTasks(String, String, String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Bulk-cancels every other
TaskStatus.PENDINGtask on the same step (excludingexceptTaskId), respecting optimistic-lock version. - cancelOtherPendingTasks(String, String, String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- cancelOtherPendingTasks(String, String, String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- casIncrementAddsignDepth(String, int, int) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Compare-and-set:
UPDATE addsign_depth = addsign_depth + 1, version = version + 1 WHERE id = ? AND version = ? AND addsign_depth < maxDepth. - casIncrementAddsignDepth(String, int, int) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- casIncrementAddsignDepth(String, int, int) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- CFG_INVALID_VALUE - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Illegal configuration value (e.g. table-prefix regex mismatch).
- circulate(String, String, List, String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Circulate (read-only notification) to additional users.
- circulate(String, String, List, String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- CIRCULATE - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Circulate (read-only notification, no decision).
- CirculateOperation - Class in cloud.opencode.base.flow.operation
-
Circulate (read-only notification) action — appends a history row and publishes a
TaskCirculatedEvent; does not affect the workflow state (v4 §8.8). - CirculateOperation(HistoryWriter) - Constructor for class cloud.opencode.base.flow.operation.CirculateOperation
-
Construct a circulate operation with no instance-status / user-existence checks beyond
InputSanitizer.validateUserId(String)form validation. - CirculateOperation(FlowRepository, HistoryWriter, AssigneeResolver) - Constructor for class cloud.opencode.base.flow.operation.CirculateOperation
-
Construct a circulate operation with full instance-status + recipient validation.
- clearCache() - Method in class cloud.opencode.base.flow.dsl.DslParser
-
Clears the parse cache.
- cloud.opencode.base.flow - package cloud.opencode.base.flow
-
OpenCode Base Flow - Lightweight approval workflow engine with JSON DSL.
- cloud.opencode.base.flow.api - package cloud.opencode.base.flow.api
-
Public API surface for the flow engine (4 services exposed to the host).
- cloud.opencode.base.flow.api.dto - package cloud.opencode.base.flow.api.dto
-
Data Transfer Objects (Builder + record) for the flow public API.
- cloud.opencode.base.flow.dsl - package cloud.opencode.base.flow.dsl
-
JSON DSL parsing for flow definitions (parser + validator + JSON Schema).
- cloud.opencode.base.flow.event - package cloud.opencode.base.flow.event
-
Domain events published by the flow engine.
- cloud.opencode.base.flow.exception - package cloud.opencode.base.flow.exception
-
Flow exception hierarchy and
FlowErrorCodecatalogue. - cloud.opencode.base.flow.internal - package cloud.opencode.base.flow.internal
-
Package-private engine internals (DefaultFlowEngine / StepEvaluator / TransitionResolver / HistoryWriter).
- cloud.opencode.base.flow.model - package cloud.opencode.base.flow.model
-
Domain models for the flow engine (immutable records).
- cloud.opencode.base.flow.observability - package cloud.opencode.base.flow.observability
-
Optional observability integration — v4 §9.1.
- cloud.opencode.base.flow.operation - package cloud.opencode.base.flow.operation
-
Seven approval operation handlers (approve / vote / reject / addSign / withdraw / transfer / circulate). 7 个审批动作处理器(同意 / 投票 / 驳回 / 加签 / 撤回 / 转办 / 抄送)。
- cloud.opencode.base.flow.persistence - package cloud.opencode.base.flow.persistence
-
Persistence layer (InMemory + JDBC repositories with dialect abstraction).
- cloud.opencode.base.flow.persistence.jdbc - package cloud.opencode.base.flow.persistence.jdbc
-
JDBC repository (MySQL / PostgreSQL / H2) with dialect abstraction and SqlBuilder.
- cloud.opencode.base.flow.persistence.memory - package cloud.opencode.base.flow.persistence.memory
-
In-memory repository implementation for unit tests and quick demos (M3).
- cloud.opencode.base.flow.spi - package cloud.opencode.base.flow.spi
-
Service Provider Interfaces (3 SPIs: AssigneeResolver / ExpressionEvaluator / CurrentUserProvider).
- code() - Method in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Returns the stable wire-format error code, e.g.
- comment() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
commentrecord component. - Comment - Record Class in cloud.opencode.base.flow.model
-
Immutable comment attached to a task action.
- Comment(String, String, String, Instant) - Constructor for record class cloud.opencode.base.flow.model.Comment
-
Compact constructor; validates text length.
- COMPLETE - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Instance completed (reached an end step).
- COMPLETED - Enum constant in enum class cloud.opencode.base.flow.model.InstanceStatus
-
Completed normally at an
StepType.ENDstep. - CONC_VERSION_CONFLICT - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Optimistic-lock version conflict (concurrent modification).
- ConcurrentFlowModificationException - Exception Class in cloud.opencode.base.flow.exception
-
Thrown on optimistic-lock version conflict during a concurrent update.
- ConcurrentFlowModificationException(String, String) - Constructor for exception class cloud.opencode.base.flow.exception.ConcurrentFlowModificationException
-
Creates a new concurrent modification exception.
- ConcurrentFlowModificationException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.flow.exception.ConcurrentFlowModificationException
-
Creates a new concurrent modification exception with a root cause.
- create() - Static method in class cloud.opencode.base.flow.observability.FlowMetricsFactory
-
Returns a
FlowMetricsbound to a freshly createdMetricRegistrywhenopencode-base-observabilityis on the classpath, or aNoOpFlowMetricsotherwise. - createdAt() - Method in record class cloud.opencode.base.flow.model.Comment
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
createdAtrecord component. - createdBy() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
createdByrecord component. - createOne(FlowInstance, Step, String) - Method in class cloud.opencode.base.flow.internal.StepEntry
-
Creates a single PENDING task for the given assignee (used by sequential approve to add the next-in-line task after the current approver passes).
- currentStepId() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
currentStepIdrecord component. - currentStepId() - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Returns the value of the
currentStepIdrecord component. - currentUserId() - Method in interface cloud.opencode.base.flow.spi.CurrentUserProvider
-
Returns the current user id, or
nullwhen no user is bound to the calling thread. - CurrentUserProvider - Interface in cloud.opencode.base.flow.spi
-
Supplies the current request's acting user id.
D
- DB_ACCESS_FAILURE - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Generic database access failure at runtime — connection drop, deadlock, timeout, or any other JDBC error not specifically classified above.
- DEF_DEPRECATED - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Attempt to use a deprecated flow definition.
- DEF_DUPLICATE - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Duplicate
(flow_key, version)on deploy. - DEFAULT_CACHE_SIZE - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
Default LRU cache capacity.
- DEFAULT_MAX_ASSIGNEES_PER_STEP - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Default per-step assignees quota (v4 §4.7).
- DEFAULT_MAX_BYTES - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
Default max DSL size in bytes (UTF-16 chars; conservative bound).
- DEFAULT_MAX_DEPTH - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Default JSON nesting depth quota (v4 §4.7).
- DEFAULT_MAX_DEPTH - Static variable in class cloud.opencode.base.flow.operation.AddSignOperation
-
Default max addsign chain depth (v4 §8.5).
- DEFAULT_MAX_STEPS - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Default steps quota (v4 §4.7). steps 默认配额。
- DEFAULT_MAX_TRANSITIONS - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Default transitions quota (v4 §4.7). transitions 默认配额。
- DEFAULT_POLICY - Static variable in class cloud.opencode.base.flow.operation.WithdrawOperation
-
Default withdraw policy.
- DEFAULT_TABLE_PREFIX - Static variable in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
Default table prefix when
JdbcFlowRepository.SYS_PROP_TABLE_PREFIXis unset. - DefaultFlowDefinitionService - Class in cloud.opencode.base.flow.internal
- DefaultFlowDefinitionService(FlowRepository) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowDefinitionService
-
Construct the service with default DSL parser / validator.
- DefaultFlowDefinitionService(FlowRepository, DslParser, DslValidator, IdProvider) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowDefinitionService
-
Test-friendly constructor.
- DefaultFlowInstanceService - Class in cloud.opencode.base.flow.internal
-
Default
FlowInstanceServiceimplementation. - DefaultFlowInstanceService(FlowRepository, StepEntry, HistoryWriter, IdProvider) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
-
Test-friendly constructor.
- DefaultFlowInstanceService(FlowRepository, StepEntry, HistoryWriter, IdProvider, FlowMetrics) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
-
Test-friendly constructor with explicit
FlowMetrics. - DefaultFlowInstanceService(FlowRepository, StepEntry, HistoryWriter, IdProvider, FlowMetrics, CurrentUserProvider) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
-
Full test-friendly constructor including authn SPI.
- DefaultFlowInstanceService(FlowRepository, AssigneeResolver, ExpressionEvaluator) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
-
Convenience constructor that wires a no-op
FlowMetrics. - DefaultFlowInstanceService(FlowRepository, AssigneeResolver, ExpressionEvaluator, FlowMetrics) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
-
Convenience constructor with an explicit
FlowMetrics. - DefaultFlowInstanceService(FlowRepository, AssigneeResolver, ExpressionEvaluator, FlowMetrics, CurrentUserProvider) - Constructor for class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
-
Full convenience constructor including authn SPI.
- DefaultHistoryService - Class in cloud.opencode.base.flow.internal
-
Default
HistoryServiceimplementation — delegates to the repository with an optional engine-side authorisation check. - DefaultHistoryService(FlowRepository) - Constructor for class cloud.opencode.base.flow.internal.DefaultHistoryService
-
Construct the service with no engine-level authz (legacy / test mode).
- DefaultHistoryService(FlowRepository, CurrentUserProvider) - Constructor for class cloud.opencode.base.flow.internal.DefaultHistoryService
-
Construct the service with engine-level authz enforced via the given
CurrentUserProvider. - defaultMessage() - Method in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Returns the fallback English message used when no i18n bundle is wired.
- DefaultTaskService - Class in cloud.opencode.base.flow.internal
-
Default
TaskServiceimplementation. - DefaultTaskService(FlowRepository, ApproveOperation, VoteOperation, RejectOperation, AddSignOperation, WithdrawOperation, TransferOperation, CirculateOperation) - Constructor for class cloud.opencode.base.flow.internal.DefaultTaskService
-
Test-friendly constructor accepting fully-built operation instances (no-op
FlowMetrics). - DefaultTaskService(FlowRepository, ApproveOperation, VoteOperation, RejectOperation, AddSignOperation, WithdrawOperation, TransferOperation, CirculateOperation, FlowMetrics) - Constructor for class cloud.opencode.base.flow.internal.DefaultTaskService
-
Test-friendly constructor accepting fully-built operation instances with explicit
FlowMetrics. - DefaultTaskService(FlowRepository, ApproveOperation, VoteOperation, RejectOperation, AddSignOperation, WithdrawOperation, TransferOperation, CirculateOperation, FlowMetrics, CurrentUserProvider) - Constructor for class cloud.opencode.base.flow.internal.DefaultTaskService
-
Full test-friendly constructor including authn SPI.
- DefaultTaskService(FlowRepository, AssigneeResolver, ExpressionEvaluator) - Constructor for class cloud.opencode.base.flow.internal.DefaultTaskService
-
Convenience constructor wiring all dependencies from the SPIs with a no-op
FlowMetrics. - DefaultTaskService(FlowRepository, AssigneeResolver, ExpressionEvaluator, FlowMetrics) - Constructor for class cloud.opencode.base.flow.internal.DefaultTaskService
-
Convenience constructor wiring all dependencies from the SPIs with an explicit
FlowMetrics. - DefaultTaskService(FlowRepository, AssigneeResolver, ExpressionEvaluator, FlowMetrics, CurrentUserProvider) - Constructor for class cloud.opencode.base.flow.internal.DefaultTaskService
-
Full convenience constructor including authn SPI.
- definitionId() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
definitionIdrecord component. - deploy(String) - Method in interface cloud.opencode.base.flow.api.FlowDefinitionService
-
Deploy a new flow definition from the given JSON DSL.
- deploy(String) - Method in class cloud.opencode.base.flow.internal.DefaultFlowDefinitionService
- deprecate(String, int) - Method in interface cloud.opencode.base.flow.api.FlowDefinitionService
-
Deprecate a specific (flowKey, version) definition.
- deprecate(String, int) - Method in class cloud.opencode.base.flow.internal.DefaultFlowDefinitionService
-
Deprecate a specific (flowKey, version) definition.
- DEPRECATED - Enum constant in enum class cloud.opencode.base.flow.model.FlowStatus
-
Deprecated — existing instances continue, but no new instance may start.
- DEPT - Enum constant in enum class cloud.opencode.base.flow.model.AssigneeType
-
A department code resolved by the host system.
- detect(String) - Static method in interface cloud.opencode.base.flow.persistence.jdbc.JdbcDialect
-
Detects the appropriate dialect from a JDBC URL.
- dialect() - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
Returns the detected dialect (visible for diagnostics and testing).
- DISAGREE - Enum constant in enum class cloud.opencode.base.flow.model.VoteOpinion
-
Vote against.
- DONE - Enum constant in enum class cloud.opencode.base.flow.model.TaskStatus
-
Done — the assignee made a decision (see
TaskOutcome). - DONE_VOIDED - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Marks a DONE task voided by a loose-policy withdraw.
- DRAFT - Enum constant in enum class cloud.opencode.base.flow.model.FlowStatus
-
Draft — uploaded but not yet activated.
- DSL_DUP_STEP_ID - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Duplicate step id within the same flow definition.
- DSL_INVALID - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
JSON structure invalid (e.g. malformed, missing required field).
- DSL_INVALID_ENUM - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Illegal value for
strategy/mode/typeenums. - DSL_INVALID_REFERENCE - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Transition references a non-existent step id. transitions 引用了不存在的节点 id。
- DSL_QUOTA_EXCEEDED - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
DSL document exceeds parser quotas (size / depth / array length).
- DSL_UNSUPPORTED_SCHEMA_VERSION - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Unsupported
schemaVersion. - dslJson() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
dslJsonrecord component. - DslParseException - Exception Class in cloud.opencode.base.flow.exception
-
Thrown when the JSON DSL fails structural or semantic validation.
- DslParseException(String, String) - Constructor for exception class cloud.opencode.base.flow.exception.DslParseException
-
Creates a new DSL parse exception.
- DslParseException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.flow.exception.DslParseException
-
Creates a new DSL parse exception with a root cause.
- DslParser - Class in cloud.opencode.base.flow.dsl
-
JSON DSL →
FlowDefinitionparser (v4 §4, §11). - DslParser() - Constructor for class cloud.opencode.base.flow.dsl.DslParser
-
Constructs a parser using the default JSON provider.
- DslParser(int, int) - Constructor for class cloud.opencode.base.flow.dsl.DslParser
-
Constructs a parser with explicit limits (mainly for tests).
- DslValidator - Class in cloud.opencode.base.flow.dsl
-
Semantic / quota validator for parsed
FlowDsldocuments. - DslValidator() - Constructor for class cloud.opencode.base.flow.dsl.DslValidator
-
Creates a validator with quotas frozen from current
System.getProperty(String)values, defaulting only when a property is missing or blank. - DslValidator(int, int, int, int) - Constructor for class cloud.opencode.base.flow.dsl.DslValidator
-
Creates a validator with explicit quotas; primarily for unit tests and advanced hosts that wire quotas from their own config system.
E
- END - Enum constant in enum class cloud.opencode.base.flow.model.StepType
-
End step: instance is set to
InstanceStatus.COMPLETED. - endedAt() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
endedAtrecord component. - enter(FlowInstance, Step) - Method in class cloud.opencode.base.flow.internal.StepEntry
-
Creates and persists the PENDING tasks for a step entry.
- equals(Object) - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.AssigneeDsl
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.TransitionDsl
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.Assignee
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.Comment
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.Step
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.Task
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.Transition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Indicates whether some other object is "equal to" this one.
- ERROR_FIELD_MAX_LEN - Static variable in class cloud.opencode.base.flow.internal.InputSanitizer
-
Max length for fields embedded in exception messages. — 异常消息嵌入字段长度上限。
- evaluate(FlowInstance, Step) - Method in class cloud.opencode.base.flow.internal.StepEvaluator
-
Evaluates the given step's current terminal state.
- evaluate(String, FlowContext) - Method in interface cloud.opencode.base.flow.spi.ExpressionEvaluator
-
Evaluates the given expression against the supplied
FlowContext. - execute(FlowInstance, String, String) - Method in class cloud.opencode.base.flow.operation.WithdrawOperation
-
Execute the withdraw action.
- execute(Task, FlowDefinition, VoteOpinion, String) - Method in class cloud.opencode.base.flow.operation.VoteOperation
-
Execute the vote action.
- execute(Task, FlowDefinition, String) - Method in class cloud.opencode.base.flow.operation.ApproveOperation
-
Execute the approve action.
- execute(Task, FlowDefinition, String, String) - Method in class cloud.opencode.base.flow.operation.RejectOperation
-
Execute the reject action.
- execute(Task, FlowDefinition, List, String) - Method in class cloud.opencode.base.flow.operation.AddSignOperation
-
Execute the add-sign action.
- execute(Task, String, String, String) - Method in class cloud.opencode.base.flow.operation.TransferOperation
-
Execute the transfer action.
- execute(Task, String, List, String) - Method in class cloud.opencode.base.flow.operation.CirculateOperation
-
Execute the circulate action.
- EXPR_EVALUATOR_NOT_PROVIDED - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
DSL references a
${expr}but noExpressionEvaluatorwas injected. - ExpressionEvaluator - Interface in cloud.opencode.base.flow.spi
-
Expression-evaluation SPI (optional).
- extraJson() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
extraJsonrecord component.
F
- findActive(String) - Method in interface cloud.opencode.base.flow.api.FlowDefinitionService
-
Returns the currently active definition for the given business key.
- findActive(String) - Method in class cloud.opencode.base.flow.internal.DefaultFlowDefinitionService
- findActiveDefinition(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Returns the single
FlowStatus.ACTIVEdefinition for the given business key, if any. - findActiveDefinition(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findActiveDefinition(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findByInitiator(String, int, int) - Method in interface cloud.opencode.base.flow.api.FlowInstanceService
-
Paginated list of instances started by the given user.
- findByInitiator(String, int, int) - Method in class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
- findByTaskId(String) - Method in interface cloud.opencode.base.flow.api.HistoryService
-
Returns the single history row tied to the given task id (if any).
- findByTaskId(String) - Method in class cloud.opencode.base.flow.internal.DefaultHistoryService
- findByUser(String, int, int) - Method in interface cloud.opencode.base.flow.api.HistoryService
-
Paginated history rows operated by the given user.
- findByUser(String, int, int) - Method in class cloud.opencode.base.flow.internal.DefaultHistoryService
- findDefinitionById(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Looks up a definition by its primary id.
- findDefinitionById(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findDefinitionById(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findDefinitionVersions(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Lists every persisted version of the given business key, in version ascending order.
- findDefinitionVersions(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findDefinitionVersions(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findHistoryByInstance(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Lists every history row for an instance in chronological order (earliest first).
- findHistoryByInstance(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findHistoryByInstance(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findHistoryByTaskId(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Looks up a history row by its related task id (one-to-one for terminal task actions such as approve / reject).
- findHistoryByTaskId(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findHistoryByTaskId(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findHistoryByUser(String, int, int) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Paginated history query for the given user (matched on
HistoryRecord.operatorId()). - findHistoryByUser(String, int, int) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findHistoryByUser(String, int, int) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findInstanceById(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Looks up an instance by id.
- findInstanceById(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findInstanceById(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findInstancesByInitiator(String, int, int) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Lists instances started by the given user, paginated.
- findInstancesByInitiator(String, int, int) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findInstancesByInitiator(String, int, int) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findStepById(FlowDefinition, String) - Method in class cloud.opencode.base.flow.internal.TransitionResolver
-
Returns the
Stepwith the given id fromdef.steps(). - findTaskById(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Looks up a task by id.
- findTaskById(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findTaskById(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findTasksByInstance(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Lists every task (any status) under the given instance.
- findTasksByInstance(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findTasksByInstance(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findTasksByInstanceAndStatus(String, TaskStatus) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Lists tasks that belong to the given instance and currently sit in the given status.
- findTasksByInstanceAndStatus(String, TaskStatus) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findTasksByInstanceAndStatus(String, TaskStatus) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findTodo(String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Convenience: equivalent to
findTodo(userId, 0, 50). - findTodo(String, int, int) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Paginated todo query (status = PENDING) for a user.
- findTodo(String, int, int) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- findTodoByUser(String, int, int) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Paginated todo-list query for the given user (status =
TaskStatus.PENDINGonly). - findTodoByUser(String, int, int) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findTodoByUser(String, int, int) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- findVotesByTask(String) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Lists every vote recorded against the given task, in vote order.
- findVotesByTask(String) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- findVotesByTask(String) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- finishedAt() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
finishedAtrecord component. - FLOW_KEY_PATTERN - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
Allowed characters in
flowKey— starts with a letter, body limited to alphanumerics / underscore / hyphen / dot. - FlowCompletedEvent - Class in cloud.opencode.base.flow.event
-
Domain event raised when a
FlowInstancereaches a terminal status (InstanceStatus.COMPLETED/InstanceStatus.TERMINATED/InstanceStatus.WITHDRAWN). - FlowCompletedEvent(String, String, InstanceStatus) - Constructor for class cloud.opencode.base.flow.event.FlowCompletedEvent
-
Creates a new event.
- FlowContext - Record Class in cloud.opencode.base.flow.spi
-
Read-only context passed to every SPI implementation (
AssigneeResolver,ExpressionEvaluator). - FlowContext(String, String, String, String, Map) - Constructor for record class cloud.opencode.base.flow.spi.FlowContext
-
Compact constructor: defensively copies
FlowContext.variablesinto an immutable map (Map.of()whennull). - FlowDefinition - Record Class in cloud.opencode.base.flow.model
-
Deployed flow definition (immutable view of
flow_definitionrow + parsed DSL). - FlowDefinition(String, String, int, String, String, FlowStatus, List, List, Instant, String) - Constructor for record class cloud.opencode.base.flow.model.FlowDefinition
-
Compact constructor; deeply copies the step / transition lists.
- FlowDefinitionException - Exception Class in cloud.opencode.base.flow.exception
-
Thrown when flow definition deployment or version management fails.
- FlowDefinitionException(String, String) - Constructor for exception class cloud.opencode.base.flow.exception.FlowDefinitionException
-
Creates a new flow definition exception.
- FlowDefinitionException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.flow.exception.FlowDefinitionException
-
Creates a new flow definition exception with a root cause.
- FlowDefinitionService - Interface in cloud.opencode.base.flow.api
-
Flow-definition facade: deploy, list, deprecate.
- FlowDsl - Record Class in cloud.opencode.base.flow.dsl
-
Raw JSON DSL top-level structure (v4 §4.1).
- FlowDsl(String, String, String, Integer, List, List) - Constructor for record class cloud.opencode.base.flow.dsl.FlowDsl
-
Creates an instance of a
FlowDslrecord class. - FlowDsl.AssigneeDsl - Record Class in cloud.opencode.base.flow.dsl
-
Single DSL assignee record.
- FlowDsl.StepDsl - Record Class in cloud.opencode.base.flow.dsl
-
Single DSL step record (mirrors JSON object literally).
- FlowDsl.TransitionDsl - Record Class in cloud.opencode.base.flow.dsl
-
Single DSL transition record.
- FlowErrorCode - Enum Class in cloud.opencode.base.flow.exception
-
Catalogue of stable error codes for the opencode-base-flow module. opencode-base-flow 模块的稳定错误码目录。
- FlowEventBusBridge - Class in cloud.opencode.base.flow.internal
-
Cross-package bridge into the package-private
FlowEventBusso theoperation/package can publish domain events without exposing the underlying bus type. - FlowException - Exception Class in cloud.opencode.base.flow.exception
-
Base exception for the opencode-base-flow module. opencode-base-flow 模块的异常基类。
- FlowException(String, String) - Constructor for exception class cloud.opencode.base.flow.exception.FlowException
-
Creates a new flow exception.
- FlowException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.flow.exception.FlowException
-
Creates a new flow exception with a root cause.
- FlowInstance - Record Class in cloud.opencode.base.flow.model
-
Running flow instance (mirrors
flow_instancerow). - FlowInstance(String, String, String, String, String, InstanceStatus, Map, int, int, Instant, Instant) - Constructor for record class cloud.opencode.base.flow.model.FlowInstance
-
Compact constructor; defensively copies
FlowInstance.variablesinto an immutable map. - FlowInstanceNotFoundException - Exception Class in cloud.opencode.base.flow.exception
-
Thrown when a flow instance lookup by id returns no row.
- FlowInstanceNotFoundException(String, String) - Constructor for exception class cloud.opencode.base.flow.exception.FlowInstanceNotFoundException
-
Creates a new flow instance not found exception.
- FlowInstanceNotFoundException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.flow.exception.FlowInstanceNotFoundException
-
Creates a new flow instance not found exception with a root cause.
- FlowInstanceService - Interface in cloud.opencode.base.flow.api
-
Flow-instance facade: start, get, list, terminate.
- flowKey() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
flowKeyrecord component. - flowKey() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
flowKeyrecord component. - flowKey() - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Returns the value of the
flowKeyrecord component. - FlowMetrics - Interface in cloud.opencode.base.flow.observability
-
Engine-facing metrics façade — v4 §9.1.
- FlowMetricsFactory - Class in cloud.opencode.base.flow.observability
-
Factory for
FlowMetricsthat auto-detects whether the optionalopencode-base-observabilitymodule is available on the runtime classpath. - FlowRepository - Interface in cloud.opencode.base.flow.persistence
-
Unified persistence contract for the flow engine; backed by either
InMemoryFlowRepository(tests / demos) orJdbcFlowRepository(production, S4). - FlowStartedEvent - Class in cloud.opencode.base.flow.event
-
Domain event raised when a
FlowInstanceis started. - FlowStartedEvent(String, String, String) - Constructor for class cloud.opencode.base.flow.event.FlowStartedEvent
-
Creates a new event.
- FlowStatus - Enum Class in cloud.opencode.base.flow.model
-
Lifecycle status of a
FlowDefinition. - forErrorMessage(String) - Static method in class cloud.opencode.base.flow.internal.InputSanitizer
-
Sanitises a string for safe embedding in exception / log messages — strips CRLF, C0 controls, DEL, Unicode line / segment separators (U+0085 / U+2028 / U+2029), bidi / zero-width characters and the BOM, then truncates to 64 characters.
- from() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.TransitionDsl
-
Returns the value of the
fromrecord component. - from() - Method in record class cloud.opencode.base.flow.model.Transition
-
Returns the value of the
fromrecord component. - fromRegistry(Object) - Static method in class cloud.opencode.base.flow.observability.FlowMetricsFactory
-
Returns a
FlowMetricsbound to the supplied registry.
G
- get(String) - Method in interface cloud.opencode.base.flow.api.FlowInstanceService
-
Returns the instance by id (or throws INST_NOT_FOUND).
- get(String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Returns the task by id (or throws TASK_NOT_FOUND).
- get(String) - Method in class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
- get(String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- getErrorCode() - Method in exception class cloud.opencode.base.flow.exception.FlowException
-
Returns the stable error code attached to this exception.
- getFlowKey() - Method in class cloud.opencode.base.flow.event.FlowCompletedEvent
- getFlowKey() - Method in class cloud.opencode.base.flow.event.FlowStartedEvent
- getFromUserId() - Method in class cloud.opencode.base.flow.event.TaskCirculatedEvent
- getInitiatorId() - Method in class cloud.opencode.base.flow.event.FlowStartedEvent
- getInstanceId() - Method in class cloud.opencode.base.flow.event.FlowCompletedEvent
- getInstanceId() - Method in class cloud.opencode.base.flow.event.FlowStartedEvent
- getInstanceId() - Method in class cloud.opencode.base.flow.event.TaskCirculatedEvent
- getStatus() - Method in class cloud.opencode.base.flow.event.FlowCompletedEvent
- getTaskId() - Method in class cloud.opencode.base.flow.event.TaskCirculatedEvent
- getToUserIds() - Method in class cloud.opencode.base.flow.event.TaskCirculatedEvent
H
- H2Dialect - Class in cloud.opencode.base.flow.persistence.jdbc
-
H2 database dialect (primary CI / contract-test backend).
- H2Dialect() - Constructor for class cloud.opencode.base.flow.persistence.jdbc.H2Dialect
-
Creates a stateless H2 dialect.
- hashCode() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.AssigneeDsl
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.TransitionDsl
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.Assignee
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.Comment
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.Step
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.Transition
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Returns a hash code value for this object.
- HistoryRecord - Record Class in cloud.opencode.base.flow.model
-
Single immutable history entry (mirrors
flow_historyrow). - HistoryRecord(String, String, String, String, Action, String, String, String, Instant) - Constructor for record class cloud.opencode.base.flow.model.HistoryRecord
-
Compact constructor; validates required fields.
- HistoryService - Interface in cloud.opencode.base.flow.api
-
History-timeline facade.
- HistoryWriter - Class in cloud.opencode.base.flow.internal
-
Internal append-only writer for
HistoryRecords. - HistoryWriter(FlowRepository) - Constructor for class cloud.opencode.base.flow.internal.HistoryWriter
-
Constructs a writer backed by the supplied repository and the default snowflake id provider.
I
- id() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Returns the value of the
idrecord component. - id() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
idrecord component. - id() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
idrecord component. - id() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
idrecord component. - id() - Method in record class cloud.opencode.base.flow.model.Step
-
Returns the value of the
idrecord component. - id() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
idrecord component. - id() - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Returns the value of the
idrecord component. - IllegalActionException - Exception Class in cloud.opencode.base.flow.exception
-
Thrown when an action is rejected by the engine's state machine.
- IllegalActionException(String, String) - Constructor for exception class cloud.opencode.base.flow.exception.IllegalActionException
-
Creates a new illegal action exception.
- IllegalActionException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.flow.exception.IllegalActionException
-
Creates a new illegal action exception with a root cause.
- initiatorId() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
initiatorIdrecord component. - initiatorId() - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Returns the value of the
initiatorIdrecord component. - initSchema() - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
Loads
schema/V1__init_<dialect>.sqlfrom the classpath, substitutes the validated${TABLE_PREFIX}token, then executes each statement inside a single transaction (R1 N-4). - InMemoryFlowRepository - Class in cloud.opencode.base.flow.persistence.memory
-
Thread-safe, in-memory
FlowRepositoryfor unit tests, integration tests, and short-lived demos. - InMemoryFlowRepository() - Constructor for class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
-
Constructs an empty in-memory repository.
- INPUT_INVALID_TEXT - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
User-supplied text field exceeds length limit or contains illegal control characters.
- InputSanitizer - Class in cloud.opencode.base.flow.internal
-
Package-private utility that sanitises and validates user-supplied text fields (
comment/reason/userId) before the engine persists them, per design v4 §7.3. - INST_ENDED - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Flow instance has already ended (COMPLETED / TERMINATED / WITHDRAWN).
- INST_NOT_FOUND - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Flow instance not found.
- INSTANCE - Static variable in class cloud.opencode.base.flow.observability.NoOpFlowMetrics
-
Shared singleton instance.
- instanceId() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
instanceIdrecord component. - instanceId() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
instanceIdrecord component. - instanceId() - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Returns the value of the
instanceIdrecord component. - InstanceStatus - Enum Class in cloud.opencode.base.flow.model
-
Lifecycle status of a
FlowInstance.
J
- JdbcDialect - Interface in cloud.opencode.base.flow.persistence.jdbc
-
Vendor abstraction over the small set of column-type / SQL fragments that differ between MySQL, PostgreSQL and H2.
- JdbcFlowRepository - Class in cloud.opencode.base.flow.persistence.jdbc
-
JDBC-backed
FlowRepositoryfor MySQL, PostgreSQL and H2. - JdbcFlowRepository(DataSource) - Constructor for class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
Constructs a repository backed by the supplied
DataSource; the dialect is auto-detected from the connection's JDBC URL and the table prefix is read from theJdbcFlowRepository.SYS_PROP_TABLE_PREFIXsystem property. - JdbcFlowRepository(DataSource, String) - Constructor for class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
Test-friendly constructor that takes the table prefix explicitly.
- JsonExtrasBridge - Class in cloud.opencode.base.flow.internal
-
Cross-package bridge into the package-private
JsonExtrashelper, so theoperation/package can serialiseextra_jsonpayloads without exposing the underlying helper type. - jsonType() - Method in class cloud.opencode.base.flow.persistence.jdbc.H2Dialect
- jsonType() - Method in interface cloud.opencode.base.flow.persistence.jdbc.JdbcDialect
-
Column type for
variables_json/dsl_json/extra_json. - jsonType() - Method in class cloud.opencode.base.flow.persistence.jdbc.MySqlDialect
- jsonType() - Method in class cloud.opencode.base.flow.persistence.jdbc.PostgresDialect
K
- key() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns the value of the
keyrecord component.
L
- listVersions(String) - Method in interface cloud.opencode.base.flow.api.FlowDefinitionService
-
Lists every version of the given business key (asc by version).
- listVersions(String) - Method in class cloud.opencode.base.flow.internal.DefaultFlowDefinitionService
- lockVersion() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
lockVersionrecord component. - lockVersion() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
lockVersionrecord component.
M
- MAJORITY - Enum constant in enum class cloud.opencode.base.flow.model.Strategy
-
More than 50% AGREE passes.
- maskJdbcUrl(String) - Static method in interface cloud.opencode.base.flow.persistence.jdbc.JdbcDialect
-
Masks a JDBC URL so it can be safely embedded in exception messages or logs.
- MAX_COMMENT_LEN - Static variable in class cloud.opencode.base.flow.internal.HistoryWriter
-
Hard cap on the history
commentcolumn size (4 KiB chars). - MAX_COMMENT_LEN - Static variable in class cloud.opencode.base.flow.internal.InputSanitizer
-
Max length of a comment field. — 评论字段长度上限。
- MAX_EXPR_LEN - Static variable in class cloud.opencode.base.flow.internal.StepEntry
-
Engine-side cap on a
${...}expression's body length. - MAX_EXTRA_JSON_LEN - Static variable in class cloud.opencode.base.flow.internal.HistoryWriter
-
Hard cap on the history
extra_jsoncolumn size (16 KiB chars). - MAX_FLOW_KEY_LEN - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
Hard cap on
flowKeylength (matches typical DB index limit). flowKey 长度上限(适配常见 DB 索引限制)。 - MAX_LOG_ENTRIES - Static variable in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
-
Hard ceiling on the in-memory history / vote logs so a long-running test process or demo doesn't slowly OOM.
- MAX_NAME_LEN - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
Hard cap on
namelength. name 字段长度上限。 - MAX_REASON_LEN - Static variable in class cloud.opencode.base.flow.internal.InputSanitizer
-
Max length of a reason field. — 理由字段长度上限。
- MAX_RECIPIENTS - Static variable in class cloud.opencode.base.flow.operation.CirculateOperation
-
Hard cap on recipients per circulate call.
- MAX_RESOLVED_USERS_PER_STEP - Static variable in class cloud.opencode.base.flow.internal.StepEntry
-
Engine-side cap on the number of resolved user ids per step entry.
- MAX_TAG_CARDINALITY - Static variable in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
-
Hard ceiling on the distinct
flow_keytag-values this adapter will ever emit. - MAX_TEXT_LENGTH - Static variable in record class cloud.opencode.base.flow.model.Comment
-
Hard upper bound on
Comment.textlength. - MAX_TRANSFER_DEPTH - Static variable in class cloud.opencode.base.flow.operation.TransferOperation
-
Max length of a single transfer chain on one task.
- MAX_USERID_LEN - Static variable in class cloud.opencode.base.flow.internal.InputSanitizer
-
Max length of a user id. — 用户 ID 长度上限。
- MAX_USERS_PER_CALL - Static variable in class cloud.opencode.base.flow.operation.AddSignOperation
-
Hard ceiling on a single addSign call's recipient list.
- MAX_VALUE_LENGTH - Static variable in record class cloud.opencode.base.flow.model.Assignee
-
Hard upper bound on
valuelength. - maxBytes() - Method in class cloud.opencode.base.flow.dsl.DslParser
-
Returns the frozen max-bytes limit.
- mode() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Returns the value of the
moderecord component. - mode() - Method in record class cloud.opencode.base.flow.model.Step
-
Returns the value of the
moderecord component. - MySqlDialect - Class in cloud.opencode.base.flow.persistence.jdbc
-
MySQL / MariaDB dialect.
- MySqlDialect() - Constructor for class cloud.opencode.base.flow.persistence.jdbc.MySqlDialect
-
Creates a stateless MySQL dialect.
N
- name() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns the value of the
namerecord component. - name() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
namerecord component. - nextStep(FlowDefinition, String) - Method in class cloud.opencode.base.flow.internal.TransitionResolver
- NO_OP - Static variable in interface cloud.opencode.base.flow.spi.CurrentUserProvider
-
No-op provider that always returns
null; the engine treats this as "no authenticated principal — engine-level authz checks are skipped". - NoOpFlowMetrics - Class in cloud.opencode.base.flow.observability
-
Zero-cost default
FlowMetrics— every method is an empty body. - NoOpFlowMetrics() - Constructor for class cloud.opencode.base.flow.observability.NoOpFlowMetrics
-
Constructs a no-op metrics sink.
O
- ONE_OF_N - Enum constant in enum class cloud.opencode.base.flow.model.Strategy
-
Any one of the assignees may approve to pass.
- operatorId() - Method in record class cloud.opencode.base.flow.model.Comment
-
Returns the value of the
operatorIdrecord component. - operatorId() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
operatorIdrecord component. - opinion() - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Returns the value of the
opinionrecord component. - outcome() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
outcomerecord component. - OVERFLOW_TAG - Static variable in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
-
Sentinel tag value used when the per-tag cardinality cap is exceeded.
P
- parse(String) - Method in class cloud.opencode.base.flow.dsl.DslParser
-
Parses the given DSL JSON string into a
FlowDefinition. - PENDING - Enum constant in enum class cloud.opencode.base.flow.internal.StepEvaluator.StepEvaluation
-
Step has not reached a terminal state. — 节点未达终态。
- PENDING - Enum constant in enum class cloud.opencode.base.flow.model.TaskStatus
-
Pending — awaiting handling by the assignee.
- PostgresDialect - Class in cloud.opencode.base.flow.persistence.jdbc
-
PostgreSQL dialect.
- PostgresDialect() - Constructor for class cloud.opencode.base.flow.persistence.jdbc.PostgresDialect
-
Creates a stateless PostgreSQL dialect.
- previousApproveOrVoteStep(List, FlowDefinition) - Method in class cloud.opencode.base.flow.internal.TransitionResolver
-
Returns the previous APPROVE / VOTE step recorded in the timeline of
history. - previousApproveOrVoteStep(List, FlowDefinition, String) - Method in class cloud.opencode.base.flow.internal.TransitionResolver
-
Variant that accepts an explicit current step id so callers (e.g.
- PROP_ADDSIGN_MAX_DEPTH - Static variable in class cloud.opencode.base.flow.operation.AddSignOperation
-
System property key for max addsign depth.
- PROP_CACHE_SIZE - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
System property for parse cache capacity; default 256.
- PROP_MAX_ASSIGNEES_PER_STEP - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Property key for the per-step assignees quota (v4 §4.7).
- PROP_MAX_BYTES - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
System property for max DSL byte size; default 256 KiB.
- PROP_MAX_DEPTH - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Property key for the JSON nesting depth quota (v4 §4.7).
- PROP_MAX_STEPS - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Property key for the steps quota (v4 §4.7). steps 配额属性键(v4 §4.7)。
- PROP_MAX_TRANSITIONS - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Property key for the transitions quota (v4 §4.7). transitions 配额属性键。
- PROP_WITHDRAW_POLICY - Static variable in class cloud.opencode.base.flow.operation.WithdrawOperation
-
System property key for withdraw policy.
- publishCirculated(String, String, String, List) - Static method in class cloud.opencode.base.flow.internal.FlowEventBusBridge
-
Publish a task-circulated event (best-effort).
- publishCompleted(String, String, InstanceStatus) - Static method in class cloud.opencode.base.flow.internal.FlowEventBusBridge
-
Publish a flow-completed event (best-effort).
- publishStarted(String, String, String) - Static method in class cloud.opencode.base.flow.internal.FlowEventBusBridge
-
Publish a flow-started event (best-effort).
R
- recordInstanceCompleted(String, InstanceStatus) - Method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
- recordInstanceCompleted(String, InstanceStatus) - Method in interface cloud.opencode.base.flow.observability.FlowMetrics
-
Records that a flow instance has reached a terminal state.
- recordInstanceCompleted(String, InstanceStatus) - Method in class cloud.opencode.base.flow.observability.NoOpFlowMetrics
- recordInstanceStarted(String) - Method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
- recordInstanceStarted(String) - Method in interface cloud.opencode.base.flow.observability.FlowMetrics
-
Records that a new flow instance has started.
- recordInstanceStarted(String) - Method in class cloud.opencode.base.flow.observability.NoOpFlowMetrics
- recordOperationDuration(String, Duration) - Method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
- recordOperationDuration(String, Duration) - Method in interface cloud.opencode.base.flow.observability.FlowMetrics
-
Records the wall-clock elapsed time of a single operation.
- recordOperationDuration(String, Duration) - Method in class cloud.opencode.base.flow.observability.NoOpFlowMetrics
- recordTaskCompleted(String, String, TaskOutcome) - Method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
- recordTaskCompleted(String, String, TaskOutcome) - Method in interface cloud.opencode.base.flow.observability.FlowMetrics
-
Records that a task has been completed (approved / rejected / canceled).
- recordTaskCompleted(String, String, TaskOutcome) - Method in class cloud.opencode.base.flow.observability.NoOpFlowMetrics
- recordTaskCreated(String, String) - Method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
- recordTaskCreated(String, String) - Method in interface cloud.opencode.base.flow.observability.FlowMetrics
-
Records that a PENDING task has been created.
- recordTaskCreated(String, String) - Method in class cloud.opencode.base.flow.observability.NoOpFlowMetrics
- recordVote(String, String, VoteOpinion) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Records a single vote at a
StepType.VOTEstep. - recordVote(String, String, VoteOpinion) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- recordVote(String, String, VoteOpinion) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- registry() - Method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
-
Returns the underlying registry (visible for tests and host introspection).
- reject(String, String, String, String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Reject action.
- reject(String, String, String, String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- REJECT - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Reject — either back to previous step, initiator, or a named step.
- REJECTED - Enum constant in enum class cloud.opencode.base.flow.internal.StepEvaluator.StepEvaluation
-
Step rejected overall. — 节点整体被驳回。
- REJECTED - Enum constant in enum class cloud.opencode.base.flow.model.TaskOutcome
-
The assignee rejected (or voted DISAGREE).
- RejectOperation - Class in cloud.opencode.base.flow.operation
-
Reject action — v4 §8.4:
targetStepId = "_INITIATOR_"→ rollback tosteps[0], cancel pending tasks, re-enter step 0targetStepId = null→ go to the previous approve/vote step inferred from history otherwise → must be a step id visited in history; jump there 驳回操作 —— 详见 v4 §8.4。 - RejectOperation(FlowRepository, HistoryWriter, TransitionResolver, StepEntry) - Constructor for class cloud.opencode.base.flow.operation.RejectOperation
-
Construct a reject operation.
- RES_RESOLVER_RETURNED_EMPTY - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
AssigneeResolverreturned an empty user list. - RES_USER_VALIDATION_FAILED - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
toUserId/ user validation failed (e.g. user not found). - RESERVED_STEP_ID_INITIATOR - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Reserved step id used by the
rejectaction'stargetStepIdparameter (v4 §4.7 / §8.4). - resolve(Assignee, FlowContext) - Method in interface cloud.opencode.base.flow.spi.AssigneeResolver
-
Resolves the given
Assigneedeclaration into the concrete user IDs that should receive the task. - resolveStepAssignees(FlowInstance, Step) - Method in class cloud.opencode.base.flow.internal.StepEntry
-
Resolves every assignee declared on the step into a flat de-duplicated list of user ids (order preserved by first-seen).
- ROLE - Enum constant in enum class cloud.opencode.base.flow.model.AssigneeType
-
A role code resolved by the host system.
- runInTransaction(Runnable) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Run the supplied action atomically.
- runInTransaction(Runnable) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
Runs the supplied action atomically (R1 S-5).
- runInTransaction(Runnable) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
-
Serialises the action under a reentrant lock and provides snapshot rollback if the action throws.
- RUNNING - Enum constant in enum class cloud.opencode.base.flow.model.InstanceStatus
-
Running.
S
- sanitizeComment(String) - Static method in class cloud.opencode.base.flow.internal.InputSanitizer
-
Sanitises a
commentfield: returnsnullfornullinput; normalises line endings to\n; strips control characters other than\n; enforcesInputSanitizer.MAX_COMMENT_LEN. - sanitizeReason(String) - Static method in class cloud.opencode.base.flow.internal.InputSanitizer
-
Sanitises a
reasonfield: same rules asInputSanitizer.sanitizeComment(String)but capped atInputSanitizer.MAX_REASON_LEN. - saveDefinition(FlowDefinition) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Persists a new flow definition.
- saveDefinition(FlowDefinition) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- saveDefinition(FlowDefinition) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- saveInstance(FlowInstance) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Persists a new flow instance.
- saveInstance(FlowInstance) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- saveInstance(FlowInstance) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- saveTask(Task) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Persists a new task.
- saveTask(Task) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- saveTask(Task) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- schemaVersion() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns the value of the
schemaVersionrecord component. - SEQUENTIAL - Enum constant in enum class cloud.opencode.base.flow.model.Strategy
-
Sequential approval: every assignee must approve in order.
- shortName() - Method in class cloud.opencode.base.flow.persistence.jdbc.H2Dialect
- shortName() - Method in interface cloud.opencode.base.flow.persistence.jdbc.JdbcDialect
-
Short identifier used to pick the matching
V1__init_*.sqlscript (one of"mysql"/"postgres"/"h2"). - shortName() - Method in class cloud.opencode.base.flow.persistence.jdbc.MySqlDialect
- shortName() - Method in class cloud.opencode.base.flow.persistence.jdbc.PostgresDialect
- start(String, String, Map) - Method in interface cloud.opencode.base.flow.api.FlowInstanceService
-
Start a new instance for the given business key.
- start(String, String, Map) - Method in class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
- START - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Instance started.
- startedAt() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
startedAtrecord component. - status() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
statusrecord component. - status() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
statusrecord component. - status() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
statusrecord component. - Step - Record Class in cloud.opencode.base.flow.model
-
Step (node) definition inside a
FlowDefinition. - Step(String, StepType, Strategy, String, List) - Constructor for record class cloud.opencode.base.flow.model.Step
-
Compact constructor that validates and immutably copies
Step.assignees. - STEP_ID_PATTERN - Static variable in class cloud.opencode.base.flow.dsl.DslValidator
-
Step id pattern (v4 §4.7).
- StepDsl(String, String, String, String, List) - Constructor for record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Creates an instance of a
StepDslrecord class. - StepEntry - Class in cloud.opencode.base.flow.internal
-
Shared helper that materialises a
Stepinto one or more PENDINGTaskrows for an existingFlowInstance. - StepEntry(FlowRepository, AssigneeResolver, ExpressionEvaluator) - Constructor for class cloud.opencode.base.flow.internal.StepEntry
-
Constructs a step-entry helper with default snowflake ids.
- StepEvaluator - Class in cloud.opencode.base.flow.internal
-
Evaluates whether a given
Stephas reached its terminal state given the current set ofTasks andVoteRecords in the repository. - StepEvaluator(FlowRepository) - Constructor for class cloud.opencode.base.flow.internal.StepEvaluator
-
Constructs an evaluator backed by the supplied repository.
- StepEvaluator.StepEvaluation - Enum Class in cloud.opencode.base.flow.internal
-
Three-valued evaluation result.
- stepId() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
stepIdrecord component. - stepId() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns the value of the
stepIdrecord component. - steps() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns the value of the
stepsrecord component. - steps() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
stepsrecord component. - StepType - Enum Class in cloud.opencode.base.flow.model
-
Step (node) type.
- strategy() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Returns the value of the
strategyrecord component. - strategy() - Method in record class cloud.opencode.base.flow.model.Step
-
Returns the value of the
strategyrecord component. - Strategy - Enum Class in cloud.opencode.base.flow.model
-
Approval / vote strategy that determines how a multi-assignee step decides "approved" / "rejected".
- SUPPORTED_SCHEMA_VERSION - Static variable in class cloud.opencode.base.flow.dsl.DslParser
-
Currently supported DSL schemaVersion.
- SYS_PROP_TABLE_PREFIX - Static variable in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
System property used to override the table prefix at startup (default
"flow_").
T
- tablePrefix() - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
-
Returns the validated table prefix (visible for diagnostics and testing).
- TARGET_INITIATOR - Static variable in class cloud.opencode.base.flow.operation.RejectOperation
-
Reserved magic string for "back to initiator". — 起草点回退保留字。
- Task - Record Class in cloud.opencode.base.flow.model
-
Current or historical task (mirrors
flow_taskrow). - Task(String, String, String, String, TaskStatus, TaskOutcome, int, Instant, Instant) - Constructor for record class cloud.opencode.base.flow.model.Task
-
Compact constructor; validates required fields.
- TASK_ALREADY_DONE - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Task is already completed.
- TASK_NOT_ASSIGNED_TO_USER - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Task is not assigned to the calling user (ownership pre-check failure).
- TASK_NOT_FOUND - Enum constant in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Task not found.
- TaskCirculatedEvent - Class in cloud.opencode.base.flow.event
-
Domain event raised when a task is circulated (read-only notification).
- TaskCirculatedEvent(String, String, String, List) - Constructor for class cloud.opencode.base.flow.event.TaskCirculatedEvent
-
Creates a new event.
- taskId() - Method in record class cloud.opencode.base.flow.model.Comment
-
Returns the value of the
taskIdrecord component. - taskId() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns the value of the
taskIdrecord component. - taskId() - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Returns the value of the
taskIdrecord component. - TaskNotFoundException - Exception Class in cloud.opencode.base.flow.exception
-
Thrown when a task lookup by id returns no row.
- TaskNotFoundException(String, String) - Constructor for exception class cloud.opencode.base.flow.exception.TaskNotFoundException
-
Creates a new task not found exception.
- TaskNotFoundException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.flow.exception.TaskNotFoundException
-
Creates a new task not found exception with a root cause.
- TaskOutcome - Enum Class in cloud.opencode.base.flow.model
-
Outcome of a completed
Task. - TaskService - Interface in cloud.opencode.base.flow.api
-
Task-centric facade exposing the seven approval operations + todo / lookup.
- TaskStatus - Enum Class in cloud.opencode.base.flow.model
-
Lifecycle status of a
Task. - terminate(String, String, String) - Method in interface cloud.opencode.base.flow.api.FlowInstanceService
-
Terminate the running instance (out-of-band).
- terminate(String, String, String) - Method in class cloud.opencode.base.flow.internal.DefaultFlowInstanceService
- TERMINATE - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Instance terminated out-of-band by an operator.
- TERMINATED - Enum constant in enum class cloud.opencode.base.flow.model.InstanceStatus
-
Terminated externally.
- text() - Method in record class cloud.opencode.base.flow.model.Comment
-
Returns the value of the
textrecord component. - timeline(String) - Method in interface cloud.opencode.base.flow.api.HistoryService
-
Returns the full chronological timeline (earliest first) for an instance.
- timeline(String) - Method in class cloud.opencode.base.flow.internal.DefaultHistoryService
- timestampType() - Method in class cloud.opencode.base.flow.persistence.jdbc.H2Dialect
- timestampType() - Method in interface cloud.opencode.base.flow.persistence.jdbc.JdbcDialect
-
Column type for
TIMESTAMPcolumns (with microsecond precision, including time-zone where the dialect supports it). - timestampType() - Method in class cloud.opencode.base.flow.persistence.jdbc.MySqlDialect
- timestampType() - Method in class cloud.opencode.base.flow.persistence.jdbc.PostgresDialect
- to() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.TransitionDsl
-
Returns the value of the
torecord component. - to() - Method in record class cloud.opencode.base.flow.model.Transition
-
Returns the value of the
torecord component. - todoSizeMetricId() - Static method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
-
Returns the metric id used for the
flow.todo.sizegauge. - toJson(Map) - Static method in class cloud.opencode.base.flow.internal.JsonExtrasBridge
-
Serialise an extras map.
- toString() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.AssigneeDsl
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.TransitionDsl
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.Assignee
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.Comment
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
PII-safe string representation.
- toString() - Method in record class cloud.opencode.base.flow.model.HistoryRecord
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.Step
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.Task
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.Transition
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Returns a string representation of this record class.
- transfer(String, String, String, String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Transfer the current task to another user.
- transfer(String, String, String, String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- TRANSFER - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Task transferred to another user.
- TransferOperation - Class in cloud.opencode.base.flow.operation
-
Transfer action — changes the assignee of a PENDING task (v4 §8.7).
- TransferOperation(FlowRepository, HistoryWriter, AssigneeResolver) - Constructor for class cloud.opencode.base.flow.operation.TransferOperation
-
Construct a transfer operation.
- TRANSFERRED - Enum constant in enum class cloud.opencode.base.flow.model.TaskOutcome
-
The task was transferred to another user.
- Transition - Record Class in cloud.opencode.base.flow.model
-
Approval-path edge between two steps.
- Transition(String, String) - Constructor for record class cloud.opencode.base.flow.model.Transition
-
Compact constructor that validates the edge endpoints are present.
- TransitionDsl(String, String) - Constructor for record class cloud.opencode.base.flow.dsl.FlowDsl.TransitionDsl
-
Creates an instance of a
TransitionDslrecord class. - TransitionResolver - Class in cloud.opencode.base.flow.internal
-
Resolves "where to go next" given a
FlowDefinitionand the current step, plus locates a sensible "previous approve / vote" target for reject. - TransitionResolver() - Constructor for class cloud.opencode.base.flow.internal.TransitionResolver
-
Default constructor.
- transitions() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns the value of the
transitionsrecord component. - transitions() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
transitionsrecord component. - type() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.AssigneeDsl
-
Returns the value of the
typerecord component. - type() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.StepDsl
-
Returns the value of the
typerecord component. - type() - Method in record class cloud.opencode.base.flow.model.Assignee
-
Returns the value of the
typerecord component. - type() - Method in record class cloud.opencode.base.flow.model.Step
-
Returns the value of the
typerecord component.
U
- updateDefinitionStatus(String, FlowStatus) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Mutates the lifecycle status of a definition (ACTIVE / DEPRECATED).
- updateDefinitionStatus(String, FlowStatus) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- updateDefinitionStatus(String, FlowStatus) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- updateInstance(FlowInstance) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Optimistic-lock UPDATE; returns the number of affected rows (
0indicates version conflict). - updateInstance(FlowInstance) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- updateInstance(FlowInstance) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- updateTask(Task) - Method in interface cloud.opencode.base.flow.persistence.FlowRepository
-
Optimistic-lock UPDATE; returns affected rows (
0= version conflict). - updateTask(Task) - Method in class cloud.opencode.base.flow.persistence.jdbc.JdbcFlowRepository
- updateTask(Task) - Method in class cloud.opencode.base.flow.persistence.memory.InMemoryFlowRepository
- updateTodoSize(int) - Method in class cloud.opencode.base.flow.observability.BaseObservabilityFlowMetrics
- updateTodoSize(int) - Method in interface cloud.opencode.base.flow.observability.FlowMetrics
-
Updates the gauge for the current todo-queue size of an observed user (or aggregate, depending on the host application).
- updateTodoSize(int) - Method in class cloud.opencode.base.flow.observability.NoOpFlowMetrics
- USER - Enum constant in enum class cloud.opencode.base.flow.model.AssigneeType
-
A specific user id, or a
${expr}placeholder. - USERID_PATTERN - Static variable in class cloud.opencode.base.flow.internal.InputSanitizer
-
Allowed characters in a user id. — 用户 ID 允许的字符集。
V
- validate(FlowDsl, String) - Method in class cloud.opencode.base.flow.dsl.DslValidator
-
Validates an already-parsed DSL document and its original JSON text.
- validateUser(String, FlowContext) - Method in interface cloud.opencode.base.flow.spi.AssigneeResolver
-
Validates that a
userIdrefers to a real, active user able to receive tasks. - validateUserId(String) - Static method in class cloud.opencode.base.flow.internal.InputSanitizer
- value() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl.AssigneeDsl
-
Returns the value of the
valuerecord component. - value() - Method in record class cloud.opencode.base.flow.model.Assignee
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.internal.StepEvaluator.StepEvaluation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.Action
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.AssigneeType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.FlowStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.InstanceStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.StepType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.Strategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.TaskOutcome
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.TaskStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.flow.model.VoteOpinion
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cloud.opencode.base.flow.exception.FlowErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.internal.StepEvaluator.StepEvaluation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.Action
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.AssigneeType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.FlowStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.InstanceStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.StepType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.Strategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.TaskOutcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.TaskStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.flow.model.VoteOpinion
-
Returns an array containing the constants of this enum class, in the order they are declared.
- variables() - Method in record class cloud.opencode.base.flow.model.FlowInstance
-
Returns the value of the
variablesrecord component. - variables() - Method in record class cloud.opencode.base.flow.spi.FlowContext
-
Returns the value of the
variablesrecord component. - version() - Method in record class cloud.opencode.base.flow.dsl.FlowDsl
-
Returns the value of the
versionrecord component. - version() - Method in record class cloud.opencode.base.flow.model.FlowDefinition
-
Returns the value of the
versionrecord component. - VETO - Enum constant in enum class cloud.opencode.base.flow.model.Strategy
-
Any single DISAGREE vetoes the step.
- vote(String, String, VoteOpinion, String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Vote action (records vote and marks task DONE).
- vote(String, String, VoteOpinion, String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- VOTE - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Voter cast a vote (AGREE / DISAGREE).
- VOTE - Enum constant in enum class cloud.opencode.base.flow.model.StepType
-
Vote step: multiple voters, gated by
Strategy. - votedAt() - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Returns the value of the
votedAtrecord component. - VoteOperation - Class in cloud.opencode.base.flow.operation
-
Vote action — records the user's vote, marks task DONE+APPROVED (i.e.
- VoteOperation(FlowRepository, HistoryWriter, StepEvaluator, TransitionResolver, StepEntry) - Constructor for class cloud.opencode.base.flow.operation.VoteOperation
-
Construct a vote operation with a no-op
FlowMetrics. - VoteOperation(FlowRepository, HistoryWriter, StepEvaluator, TransitionResolver, StepEntry, FlowMetrics) - Constructor for class cloud.opencode.base.flow.operation.VoteOperation
-
Construct a vote operation with explicit
FlowMetrics. - VoteOpinion - Enum Class in cloud.opencode.base.flow.model
-
Vote opinion submitted at a
StepType.VOTEstep. - VoteRecord - Record Class in cloud.opencode.base.flow.model
-
Single vote cast at a
StepType.VOTEstep (mirrorsflow_vote_recordrow). - VoteRecord(String, String, String, VoteOpinion, Instant) - Constructor for record class cloud.opencode.base.flow.model.VoteRecord
-
Compact constructor; validates required fields.
- voterId() - Method in record class cloud.opencode.base.flow.model.VoteRecord
-
Returns the value of the
voterIdrecord component.
W
- withdraw(String, String, String) - Method in interface cloud.opencode.base.flow.api.TaskService
-
Withdraw the running instance (initiator only).
- withdraw(String, String, String) - Method in class cloud.opencode.base.flow.internal.DefaultTaskService
- WITHDRAW - Enum constant in enum class cloud.opencode.base.flow.model.Action
-
Initiator withdrew the running instance.
- WITHDRAWN - Enum constant in enum class cloud.opencode.base.flow.model.InstanceStatus
-
Withdrawn by initiator.
- WithdrawOperation - Class in cloud.opencode.base.flow.operation
-
Withdraw action (v4 §8.6).
- WithdrawOperation(FlowRepository, HistoryWriter) - Constructor for class cloud.opencode.base.flow.operation.WithdrawOperation
-
Construct a withdraw operation with the policy read once from system properties.
- WithdrawOperation(FlowRepository, HistoryWriter, String) - Constructor for class cloud.opencode.base.flow.operation.WithdrawOperation
-
Test-only constructor with explicit policy.
- write(String, String, String, Action, String, String, String) - Method in class cloud.opencode.base.flow.internal.HistoryWriter
-
Appends a new history row.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form