Uses of Record Class
cloud.opencode.base.flow.model.FlowDefinition
Packages that use FlowDefinition
Package
Description
Public API surface for the flow engine (4 services exposed to the host).
JSON DSL parsing for flow definitions (parser + validator + JSON Schema).
Package-private engine internals (DefaultFlowEngine / StepEvaluator / TransitionResolver / HistoryWriter).
Seven approval operation handlers (approve / vote / reject / addSign / withdraw / transfer / circulate).
7 个审批动作处理器(同意 / 投票 / 驳回 / 加签 / 撤回 / 转办 / 抄送)。
Persistence layer (InMemory + JDBC repositories with dialect abstraction).
JDBC repository (MySQL / PostgreSQL / H2) with dialect abstraction and SqlBuilder.
In-memory repository implementation for unit tests and quick demos (M3).
-
Uses of FlowDefinition in cloud.opencode.base.flow.api
Methods in cloud.opencode.base.flow.api that return FlowDefinitionModifier and TypeMethodDescriptionDeploy a new flow definition from the given JSON DSL.Methods in cloud.opencode.base.flow.api that return types with arguments of type FlowDefinitionModifier and TypeMethodDescriptionFlowDefinitionService.findActive(String flowKey) Returns the currently active definition for the given business key.FlowDefinitionService.listVersions(String flowKey) Lists every version of the given business key (asc by version). -
Uses of FlowDefinition in cloud.opencode.base.flow.dsl
Methods in cloud.opencode.base.flow.dsl that return FlowDefinition -
Uses of FlowDefinition in cloud.opencode.base.flow.internal
Methods in cloud.opencode.base.flow.internal that return FlowDefinitionModifier and TypeMethodDescriptionMethods in cloud.opencode.base.flow.internal that return types with arguments of type FlowDefinitionModifier and TypeMethodDescriptionDefaultFlowDefinitionService.findActive(String flowKey) DefaultFlowDefinitionService.listVersions(String flowKey) Methods in cloud.opencode.base.flow.internal with parameters of type FlowDefinitionModifier and TypeMethodDescriptionTransitionResolver.findStepById(FlowDefinition def, String stepId) Returns theStepwith the given id fromdef.steps().TransitionResolver.nextStep(FlowDefinition def, String currentStepId) TransitionResolver.previousApproveOrVoteStep(List<HistoryRecord> history, FlowDefinition def) Returns the previous APPROVE / VOTE step recorded in the timeline ofhistory.TransitionResolver.previousApproveOrVoteStep(List<HistoryRecord> history, FlowDefinition def, String currentStepId) Variant that accepts an explicit current step id so callers (e.g. -
Uses of FlowDefinition in cloud.opencode.base.flow.operation
Methods in cloud.opencode.base.flow.operation with parameters of type FlowDefinitionModifier and TypeMethodDescriptionvoidAddSignOperation.execute(Task task, FlowDefinition def, List<String> additionalUserIds, String comment) Execute the add-sign action.voidApproveOperation.execute(Task task, FlowDefinition def, String comment) Execute the approve action.voidRejectOperation.execute(Task task, FlowDefinition def, String targetStepId, String comment) Execute the reject action.voidVoteOperation.execute(Task task, FlowDefinition def, VoteOpinion opinion, String comment) Execute the vote action. -
Uses of FlowDefinition in cloud.opencode.base.flow.persistence
Methods in cloud.opencode.base.flow.persistence that return FlowDefinitionModifier and TypeMethodDescriptionFlowRepository.saveDefinition(FlowDefinition def) Persists a new flow definition.Methods in cloud.opencode.base.flow.persistence that return types with arguments of type FlowDefinitionModifier and TypeMethodDescriptionFlowRepository.findActiveDefinition(String flowKey) Returns the singleFlowStatus.ACTIVEdefinition for the given business key, if any.FlowRepository.findDefinitionById(String id) Looks up a definition by its primary id.FlowRepository.findDefinitionVersions(String flowKey) Lists every persisted version of the given business key, in version ascending order.Methods in cloud.opencode.base.flow.persistence with parameters of type FlowDefinitionModifier and TypeMethodDescriptionFlowRepository.saveDefinition(FlowDefinition def) Persists a new flow definition. -
Uses of FlowDefinition in cloud.opencode.base.flow.persistence.jdbc
Methods in cloud.opencode.base.flow.persistence.jdbc that return FlowDefinitionMethods in cloud.opencode.base.flow.persistence.jdbc that return types with arguments of type FlowDefinitionModifier and TypeMethodDescriptionJdbcFlowRepository.findActiveDefinition(String flowKey) JdbcFlowRepository.findDefinitionById(String id) JdbcFlowRepository.findDefinitionVersions(String flowKey) Methods in cloud.opencode.base.flow.persistence.jdbc with parameters of type FlowDefinition -
Uses of FlowDefinition in cloud.opencode.base.flow.persistence.memory
Methods in cloud.opencode.base.flow.persistence.memory that return FlowDefinitionMethods in cloud.opencode.base.flow.persistence.memory that return types with arguments of type FlowDefinitionModifier and TypeMethodDescriptionInMemoryFlowRepository.findActiveDefinition(String flowKey) InMemoryFlowRepository.findDefinitionById(String id) InMemoryFlowRepository.findDefinitionVersions(String flowKey) Methods in cloud.opencode.base.flow.persistence.memory with parameters of type FlowDefinition