Uses of Record Class
cloud.opencode.base.flow.model.FlowInstance
Packages that use FlowInstance
Package
Description
Public API surface for the flow engine (4 services exposed to the host).
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 FlowInstance in cloud.opencode.base.flow.api
Methods in cloud.opencode.base.flow.api that return FlowInstanceModifier and TypeMethodDescriptionReturns the instance by id (or throws INST_NOT_FOUND).Start a new instance for the given business key.Methods in cloud.opencode.base.flow.api that return types with arguments of type FlowInstanceModifier and TypeMethodDescriptionFlowInstanceService.findByInitiator(String userId, int page, int size) Paginated list of instances started by the given user. -
Uses of FlowInstance in cloud.opencode.base.flow.internal
Methods in cloud.opencode.base.flow.internal that return FlowInstanceModifier and TypeMethodDescriptionMethods in cloud.opencode.base.flow.internal that return types with arguments of type FlowInstanceModifier and TypeMethodDescriptionDefaultFlowInstanceService.findByInitiator(String userId, int page, int size) Methods in cloud.opencode.base.flow.internal with parameters of type FlowInstanceModifier and TypeMethodDescriptionStepEntry.createOne(FlowInstance instance, Step step, String userId) 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).StepEntry.enter(FlowInstance instance, Step step) Creates and persists the PENDING tasks for a step entry.StepEvaluator.evaluate(FlowInstance instance, Step step) Evaluates the given step's current terminal state.StepEntry.resolveStepAssignees(FlowInstance instance, Step step) Resolves every assignee declared on the step into a flat de-duplicated list of user ids (order preserved by first-seen). -
Uses of FlowInstance in cloud.opencode.base.flow.operation
Methods in cloud.opencode.base.flow.operation with parameters of type FlowInstanceModifier and TypeMethodDescriptionvoidWithdrawOperation.execute(FlowInstance instance, String initiatorId, String reason) Execute the withdraw action. -
Uses of FlowInstance in cloud.opencode.base.flow.persistence
Methods in cloud.opencode.base.flow.persistence that return FlowInstanceModifier and TypeMethodDescriptionFlowRepository.saveInstance(FlowInstance inst) Persists a new flow instance.Methods in cloud.opencode.base.flow.persistence that return types with arguments of type FlowInstanceModifier and TypeMethodDescriptionFlowRepository.findInstanceById(String id) Looks up an instance by id.FlowRepository.findInstancesByInitiator(String userId, int page, int size) Lists instances started by the given user, paginated.Methods in cloud.opencode.base.flow.persistence with parameters of type FlowInstanceModifier and TypeMethodDescriptionFlowRepository.saveInstance(FlowInstance inst) Persists a new flow instance.intFlowRepository.updateInstance(FlowInstance inst) Optimistic-lock UPDATE; returns the number of affected rows (0indicates version conflict). -
Uses of FlowInstance in cloud.opencode.base.flow.persistence.jdbc
Methods in cloud.opencode.base.flow.persistence.jdbc that return FlowInstanceMethods in cloud.opencode.base.flow.persistence.jdbc that return types with arguments of type FlowInstanceModifier and TypeMethodDescriptionJdbcFlowRepository.findInstanceById(String id) JdbcFlowRepository.findInstancesByInitiator(String userId, int page, int size) Methods in cloud.opencode.base.flow.persistence.jdbc with parameters of type FlowInstanceModifier and TypeMethodDescriptionJdbcFlowRepository.saveInstance(FlowInstance inst) intJdbcFlowRepository.updateInstance(FlowInstance inst) -
Uses of FlowInstance in cloud.opencode.base.flow.persistence.memory
Methods in cloud.opencode.base.flow.persistence.memory that return FlowInstanceMethods in cloud.opencode.base.flow.persistence.memory that return types with arguments of type FlowInstanceModifier and TypeMethodDescriptionInMemoryFlowRepository.findInstanceById(String id) InMemoryFlowRepository.findInstancesByInitiator(String userId, int page, int size) Methods in cloud.opencode.base.flow.persistence.memory with parameters of type FlowInstanceModifier and TypeMethodDescriptionInMemoryFlowRepository.saveInstance(FlowInstance inst) intInMemoryFlowRepository.updateInstance(FlowInstance inst)