Uses of Record Class
cloud.opencode.base.flow.model.Task
Packages that use Task
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 Task in cloud.opencode.base.flow.api
Methods in cloud.opencode.base.flow.api that return TaskModifier and TypeMethodDescriptionReturns the task by id (or throws TASK_NOT_FOUND).Methods in cloud.opencode.base.flow.api that return types with arguments of type Task -
Uses of Task in cloud.opencode.base.flow.internal
Methods in cloud.opencode.base.flow.internal that return TaskModifier 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).Methods in cloud.opencode.base.flow.internal that return types with arguments of type Task -
Uses of Task in cloud.opencode.base.flow.operation
Methods in cloud.opencode.base.flow.operation with parameters of type TaskModifier 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.voidExecute the circulate action.voidRejectOperation.execute(Task task, FlowDefinition def, String targetStepId, String comment) Execute the reject action.voidExecute the transfer action.voidVoteOperation.execute(Task task, FlowDefinition def, VoteOpinion opinion, String comment) Execute the vote action. -
Uses of Task in cloud.opencode.base.flow.persistence
Methods in cloud.opencode.base.flow.persistence that return TaskMethods in cloud.opencode.base.flow.persistence that return types with arguments of type TaskModifier and TypeMethodDescriptionFlowRepository.findTaskById(String id) Looks up a task by id.FlowRepository.findTasksByInstance(String instanceId) Lists every task (any status) under the given instance.FlowRepository.findTasksByInstanceAndStatus(String instanceId, TaskStatus status) Lists tasks that belong to the given instance and currently sit in the given status.FlowRepository.findTodoByUser(String userId, int page, int size) Paginated todo-list query for the given user (status =TaskStatus.PENDINGonly).Methods in cloud.opencode.base.flow.persistence with parameters of type TaskModifier and TypeMethodDescriptionPersists a new task.intFlowRepository.updateTask(Task task) Optimistic-lock UPDATE; returns affected rows (0= version conflict). -
Uses of Task in cloud.opencode.base.flow.persistence.jdbc
Methods in cloud.opencode.base.flow.persistence.jdbc that return TaskMethods in cloud.opencode.base.flow.persistence.jdbc that return types with arguments of type TaskModifier and TypeMethodDescriptionJdbcFlowRepository.findTaskById(String id) JdbcFlowRepository.findTasksByInstance(String instanceId) JdbcFlowRepository.findTasksByInstanceAndStatus(String instanceId, TaskStatus status) JdbcFlowRepository.findTodoByUser(String userId, int page, int size) Methods in cloud.opencode.base.flow.persistence.jdbc with parameters of type Task -
Uses of Task in cloud.opencode.base.flow.persistence.memory
Methods in cloud.opencode.base.flow.persistence.memory that return TaskMethods in cloud.opencode.base.flow.persistence.memory that return types with arguments of type TaskModifier and TypeMethodDescriptionInMemoryFlowRepository.findTaskById(String id) InMemoryFlowRepository.findTasksByInstance(String instanceId) InMemoryFlowRepository.findTasksByInstanceAndStatus(String instanceId, TaskStatus status) InMemoryFlowRepository.findTodoByUser(String userId, int page, int size) Methods in cloud.opencode.base.flow.persistence.memory with parameters of type Task