| 限定符和类型 | 方法和说明 | 
|---|---|
| FlwTask | TaskService. claimDepartment(Long taskId,
               FlowCreator flowCreator)部门根据 任务ID 认领任务,删除其它任务参与者 | 
| FlwTask | TaskService. claimRole(Long taskId,
         FlowCreator flowCreator)角色根据 任务ID 认领任务,删除其它任务参与者 | 
| default FlwTask | TaskService. complete(Long taskId,
        FlowCreator flowCreator) | 
| default FlwTask | TaskService. complete(Long taskId,
        FlowCreator flowCreator,
        Map<String,Object> args)根据任务ID,创建人ID完成任务
 
 该方法仅仅结束活动任务,并不能驱动流程继续执行
  | 
| FlwTask | TaskService. executeTask(Long taskId,
           FlowCreator flowCreator,
           Map<String,Object> args,
           TaskState taskState,
           TaskEventType eventType)根据任务ID,创建人ID完成任务 | 
| FlwTask | QueryService. getTask(Long taskId)根据任务ID获取任务对象 | 
| FlwTask | TaskService. resume(Long taskId,
      FlowCreator flowCreator)唤醒历史任务
 
 该方法会导致流程状态不可控,请慎用
  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| List<FlwTask> | TaskService. createNewTask(Long taskId,
             TaskType taskType,
             PerformType performType,
             List<FlwTaskActor> taskActors,
             FlowCreator flowCreator,
             Function<FlwTask,Execution> executionFunction)根据已有任务、参与者创建新的任务
 
 适用于动态转派,动态协办等处理且流程图中不体现节点情况
  | 
| List<FlwTask> | FlowEngine. createNewTask(Long taskId,
             TaskType taskType,
             PerformType performType,
             List<FlwTaskActor> taskActors,
             FlowCreator flowCreator,
             Map<String,Object> args)根据已有任务、参与者创建新的任务
 
 适用于动态转派,动态协办等处理且流程图中不体现节点情况
  | 
| default List<FlwTask> | TaskService. createTask(NodeModel taskModel,
          Execution execution) | 
| List<FlwTask> | TaskService. createTask(NodeModel taskModel,
          Execution execution,
          Function<FlwTask,FlwTask> taskFunction)根据任务模型、执行对象创建新的任务 | 
| Optional<FlwTask> | TaskService. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Map<String,Object> args,
               Function<FlwTask,Execution> executionFunction,
               TaskType taskTye)执行节点跳转任务 | 
| Optional<FlwTask> | FlowEngine. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Map<String,Object> args,
               TaskType taskTye) | 
| default Optional<FlwTask> | FlowEngine. executeRejectTask(FlwTask currentFlwTask,
                 FlowCreator flowCreator,
                 Map<String,Object> args) | 
| Optional<FlwTask> | FlowEngine. executeRejectTask(FlwTask currentFlwTask,
                 String nodeKey,
                 FlowCreator flowCreator,
                 Map<String,Object> args)根据当前任务对象驳回至指定 nodeKey 节点,如果 nodeKey 为空默认为上一步处理 | 
| List<FlwTask> | QueryService. getActiveTasks(Long instanceId,
              List<String> taskNames)根据实例ID和任务节点名称获取当前节点激活的任务 | 
| default Optional<List<FlwTask>> | QueryService. getActiveTasksByInstanceId(Long instanceId)根据 流程实例ID 获取当前活动任务列表 | 
| default Optional<List<FlwTask>> | QueryService. getActiveTasksByInstanceIdAndTaskName(Long instanceId,
                                     String taskName) | 
| List<FlwTask> | QueryService. getTasksByInstanceId(Long instanceId)通过流程实例ID获取任务列表 | 
| List<FlwTask> | QueryService. getTasksByInstanceIdAndTaskKey(Long instanceId,
                              String taskKey)通过流程实例ID和任务key获取任务列表 | 
| List<FlwTask> | QueryService. getTasksByInstanceIdAndTaskName(Long instanceId,
                               String taskName) | 
| List<FlwTask> | TaskService. getTimeoutOrRemindTasks()获取超时或者提醒的任务 | 
| Optional<FlwTask> | TaskService. reclaimTask(Long taskId,
           FlowCreator flowCreator)拿回任务、在当前办理人尚未处理文件前,允许上一节点提交人员执行拿回 | 
| default Optional<FlwTask> | TaskService. rejectTask(FlwTask currentFlwTask,
          FlowCreator flowCreator) | 
| Optional<FlwTask> | TaskService. rejectTask(FlwTask currentFlwTask,
          FlowCreator flowCreator,
          Map<String,Object> args)根据当前任务对象驳回至上一步处理 | 
| Optional<FlwTask> | TaskService. withdrawTask(Long taskId,
            FlowCreator flowCreator)根据任务ID、创建人撤回任务(该任务后续任务未执行前有效) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| default boolean | TaskActorProvider. abnormal(FlwTask flwTask,
        PerformType performType,
        List<FlwTaskActor> taskActors,
        Execution execution,
        NodeModel nodeModel)非正常创建任务处理逻辑,默认抛出异常 | 
| default boolean | FlowEngine. autoRejectTask(FlwTask flwTask) | 
| default boolean | FlowEngine. autoRejectTask(FlwTask flwTask,
              FlowCreator flowCreator) | 
| boolean | FlowEngine. autoRejectTask(FlwTask flwTask,
              Map<String,Object> args,
              FlowCreator flowCreator)自动拒绝任务 | 
| default Optional<FlwTask> | FlowEngine. executeRejectTask(FlwTask currentFlwTask,
                 FlowCreator flowCreator,
                 Map<String,Object> args) | 
| Optional<FlwTask> | FlowEngine. executeRejectTask(FlwTask currentFlwTask,
                 String nodeKey,
                 FlowCreator flowCreator,
                 Map<String,Object> args)根据当前任务对象驳回至指定 nodeKey 节点,如果 nodeKey 为空默认为上一步处理 | 
| boolean | TaskService. executeTaskTrigger(Execution execution,
                  FlwTask flwTask)执行触发器任务 | 
| FlwTaskActor | TaskService. isAllowed(FlwTask flwTask,
         String userId)根据 taskId、createBy 判断创建人createBy是否允许执行任务 | 
| default Optional<FlwTask> | TaskService. rejectTask(FlwTask currentFlwTask,
          FlowCreator flowCreator) | 
| Optional<FlwTask> | TaskService. rejectTask(FlwTask currentFlwTask,
          FlowCreator flowCreator,
          Map<String,Object> args)根据当前任务对象驳回至上一步处理 | 
| Date | TaskReminder. remind(FlowContext context,
      Long instanceId,
      FlwTask currentTask)提醒操作 | 
| void | TaskService. updateTaskById(FlwTask flwTask,
              FlowCreator flowCreator)更新任务对象 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| boolean | TaskService. assigneeTask(Long taskId,
            TaskType taskType,
            FlowCreator flowCreator,
            List<FlowCreator> assigneeFlowCreators,
            Function<FlwTask,Boolean> check)根据 任务ID 分配任务给指定办理人、重置任务类型 | 
| List<FlwTask> | TaskService. createNewTask(Long taskId,
             TaskType taskType,
             PerformType performType,
             List<FlwTaskActor> taskActors,
             FlowCreator flowCreator,
             Function<FlwTask,Execution> executionFunction)根据已有任务、参与者创建新的任务
 
 适用于动态转派,动态协办等处理且流程图中不体现节点情况
  | 
| List<FlwTask> | TaskService. createTask(NodeModel taskModel,
          Execution execution,
          Function<FlwTask,FlwTask> taskFunction)根据任务模型、执行对象创建新的任务 | 
| List<FlwTask> | TaskService. createTask(NodeModel taskModel,
          Execution execution,
          Function<FlwTask,FlwTask> taskFunction)根据任务模型、执行对象创建新的任务 | 
| default boolean | TaskService. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Function<FlwTask,Execution> executionFunction) | 
| default boolean | TaskService. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Map<String,Object> args,
               Function<FlwTask,Execution> executionFunction) | 
| Optional<FlwTask> | TaskService. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Map<String,Object> args,
               Function<FlwTask,Execution> executionFunction,
               TaskType taskTye)执行节点跳转任务 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| List<FlwTask> | FlowEngineImpl. createNewTask(Long taskId,
             TaskType taskType,
             PerformType performType,
             List<FlwTaskActor> taskActors,
             FlowCreator flowCreator,
             Map<String,Object> args) | 
| Optional<FlwTask> | FlowEngineImpl. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Map<String,Object> args,
               TaskType taskTye) | 
| Optional<FlwTask> | FlowEngineImpl. executeRejectTask(FlwTask currentFlwTask,
                 String nodeKey,
                 FlowCreator flowCreator,
                 Map<String,Object> args) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | Execution. addTask(FlwTask flwTask)添加任务 | 
| boolean | FlowEngineImpl. autoRejectTask(FlwTask flwTask,
              Map<String,Object> args,
              FlowCreator flowCreator)自动拒绝任务 | 
| protected Execution | FlowEngineImpl. createExecution(ProcessModel processModel,
               FlwInstance flwInstance,
               FlwTask flwTask,
               FlowCreator flowCreator,
               Map<String,Object> args) | 
| Optional<FlwTask> | FlowEngineImpl. executeRejectTask(FlwTask currentFlwTask,
                 String nodeKey,
                 FlowCreator flowCreator,
                 Map<String,Object> args) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | Execution. addTasks(List<FlwTask> flwTasks)添加任务集合 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| FlwTask | FlwTaskDao. selectById(Long id) | 
| default FlwTask | FlwTaskDao. selectCheckById(Long id) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| List<FlwTask> | FlwTaskDao. selectListByInstanceId(Long instanceId) | 
| List<FlwTask> | FlwTaskDao. selectListByInstanceIdAndTaskKey(Long instanceId,
                                String taskKey)根据流程实例ID和任务KEY查询任务 | 
| List<FlwTask> | FlwTaskDao. selectListByInstanceIdAndTaskName(Long instanceId,
                                 String taskName) | 
| List<FlwTask> | FlwTaskDao. selectListByInstanceIdAndTaskNames(Long instanceId,
                                  List<String> taskNames) | 
| List<FlwTask> | FlwTaskDao. selectListByParentTaskId(Long parentTaskId) | 
| List<FlwTask> | FlwTaskDao. selectListByParentTaskIds(List<Long> parentTaskIds) | 
| List<FlwTask> | FlwTaskDao. selectListTimeoutOrRemindTasks(Date currentDate) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| boolean | FlwTaskDao. insert(FlwTask task) | 
| boolean | FlwTaskDao. updateById(FlwTask flwTask) | 
| 限定符和类型 | 类和说明 | 
|---|---|
| class  | FlwHisTask历史任务实体类 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| FlwTask | FlwTask. cloneTask(FlwHisTaskActor flwHisTaskActor) | 
| FlwTask | FlwTask. cloneTask(String createId,
         String createBy) | 
| FlwTask | FlwHisTask. undoTask(TaskType taskType)根据历史任务产生撤回的任务对象
 
 创建人信息保留
  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| static FlwTaskActor | FlwTaskActor. of(FlowCreator flowCreator,
  FlwTask flwTask) | 
| static FlwHisTask | FlwHisTask. of(FlwTask flwTask) | 
| static FlwHisTask | FlwHisTask. of(FlwTask flwTask,
  TaskState taskState) | 
| static FlwTaskActor | FlwTaskActor. ofAgent(AgentType agentType,
       FlowCreator flowCreator,
       FlwTask flwTask,
       FlwTaskActor agentTaskActor) | 
| static FlwTaskActor | FlwTaskActor. ofFlwTask(FlwTask flwTask) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| protected FlwTask | TaskServiceImpl. claim(Long taskId,
     AgentType agentType,
     TaskEventType eventType,
     FlowCreator flowCreator)根据 任务ID 认领任务,删除其它任务参与者 | 
| FlwTask | TaskServiceImpl. claimDepartment(Long taskId,
               FlowCreator flowCreator) | 
| FlwTask | TaskServiceImpl. claimRole(Long taskId,
         FlowCreator flowCreator) | 
| FlwTask | TaskServiceImpl. executeTask(Long taskId,
           FlowCreator flowCreator,
           Map<String,Object> args,
           TaskState taskState,
           TaskEventType eventType)执行任务 | 
| protected FlwTask | TaskServiceImpl. getAllowedFlwTask(Long taskId,
                 FlowCreator flowCreator,
                 Map<String,Object> args,
                 TaskState taskState)获取执行任务并验证合法性 | 
| FlwTask | QueryServiceImpl. getTask(Long taskId) | 
| FlwTask | TaskServiceImpl. resume(Long taskId,
      FlowCreator flowCreator)唤醒指定的历史任务 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| List<FlwTask> | TaskServiceImpl. createNewTask(Long taskId,
             TaskType taskType,
             PerformType performType,
             List<FlwTaskActor> taskActors,
             FlowCreator flowCreator,
             Function<FlwTask,Execution> executionFunction)根据已有任务、参与者创建新的任务
 
 适用于动态转派,动态协办等处理且流程图中不体现节点情况
  | 
| List<FlwTask> | TaskServiceImpl. createTask(NodeModel nodeModel,
          Execution execution,
          Function<FlwTask,FlwTask> taskFunction)创建 task 根据 model 决定是否分配参与者 | 
| Optional<FlwTask> | TaskServiceImpl. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Map<String,Object> args,
               Function<FlwTask,Execution> executionFunction,
               TaskType taskTye)执行节点跳转任务 | 
| List<FlwTask> | QueryServiceImpl. getActiveTasks(Long instanceId,
              List<String> taskNames) | 
| List<FlwTask> | QueryServiceImpl. getTasksByInstanceId(Long instanceId) | 
| List<FlwTask> | QueryServiceImpl. getTasksByInstanceIdAndTaskKey(Long instanceId,
                              String taskKey) | 
| List<FlwTask> | QueryServiceImpl. getTasksByInstanceIdAndTaskName(Long instanceId,
                               String taskName) | 
| List<FlwTask> | TaskServiceImpl. getTimeoutOrRemindTasks()获取超时或者提醒的任务 | 
| Optional<FlwTask> | TaskServiceImpl. reclaimTask(Long taskId,
           FlowCreator flowCreator)拿回任务、根据历史任务ID撤回下一个节点的任务、恢复历史任务 | 
| Optional<FlwTask> | TaskServiceImpl. rejectTask(FlwTask currentFlwTask,
          FlowCreator flowCreator,
          Map<String,Object> args) | 
| protected List<FlwTask> | TaskServiceImpl. saveTask(FlwTask flwTask,
        PerformType performType,
        List<FlwTaskActor> taskActors,
        Execution execution,
        NodeModel nodeModel)保存任务及参与者信息 | 
| protected Optional<FlwTask> | TaskServiceImpl. undoHisTask(Long hisTaskId,
           FlowCreator flowCreator,
           TaskType taskType,
           Consumer<FlwHisTask> hisTaskConsumer)撤回历史任务 | 
| Optional<FlwTask> | TaskServiceImpl. withdrawTask(Long taskId,
            FlowCreator flowCreator)撤回指定的任务 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| boolean | TaskServiceImpl. executeTaskTrigger(Execution execution,
                  FlwTask flwTask) | 
| FlwTaskActor | TaskServiceImpl. isAllowed(FlwTask flwTask,
         String userId)根据 taskId、createId 判断创建人是否允许执行任务 | 
| protected boolean | TaskServiceImpl. moveToHisTask(FlwTask flwTask,
             TaskState taskState,
             FlowCreator flowCreator)迁移任务至历史表 | 
| Optional<FlwTask> | TaskServiceImpl. rejectTask(FlwTask currentFlwTask,
          FlowCreator flowCreator,
          Map<String,Object> args) | 
| protected List<FlwTask> | TaskServiceImpl. saveTask(FlwTask flwTask,
        PerformType performType,
        List<FlwTaskActor> taskActors,
        Execution execution,
        NodeModel nodeModel)保存任务及参与者信息 | 
| void | TaskServiceImpl. saveTaskCc(NodeModel nodeModel,
          FlwTask flwTask,
          FlowCreator flowCreator)保存抄送任务 | 
| protected void | TaskServiceImpl. updateCurrentNode(FlwTask flwTask)更新当前执行节点信息 | 
| void | TaskServiceImpl. updateTaskById(FlwTask flwTask,
              FlowCreator flowCreator)更新任务对象的 finishTime、createBy、expireTime、version、variable | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| boolean | TaskServiceImpl. assigneeTask(Long taskId,
            TaskType taskType,
            FlowCreator flowCreator,
            List<FlowCreator> assigneeFlowCreators,
            Function<FlwTask,Boolean> check)根据 任务ID 分配任务给指定办理人、重置任务类型 | 
| List<FlwTask> | TaskServiceImpl. createNewTask(Long taskId,
             TaskType taskType,
             PerformType performType,
             List<FlwTaskActor> taskActors,
             FlowCreator flowCreator,
             Function<FlwTask,Execution> executionFunction)根据已有任务、参与者创建新的任务
 
 适用于动态转派,动态协办等处理且流程图中不体现节点情况
  | 
| List<FlwTask> | TaskServiceImpl. createTask(NodeModel nodeModel,
          Execution execution,
          Function<FlwTask,FlwTask> taskFunction)创建 task 根据 model 决定是否分配参与者 | 
| List<FlwTask> | TaskServiceImpl. createTask(NodeModel nodeModel,
          Execution execution,
          Function<FlwTask,FlwTask> taskFunction)创建 task 根据 model 决定是否分配参与者 | 
| Optional<FlwTask> | TaskServiceImpl. executeJumpTask(Long taskId,
               String nodeKey,
               FlowCreator flowCreator,
               Map<String,Object> args,
               Function<FlwTask,Execution> executionFunction,
               TaskType taskTye)执行节点跳转任务 | 
| protected void | TaskServiceImpl. taskNotify(TaskEventType eventType,
          Supplier<FlwTask> supplier,
          NodeModel nodeModel,
          FlowCreator flowCreator) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| default List<FlwTask> | FlwTaskMapper. selectListByInstanceId(Long instanceId)根据流程实例ID获取任务列表 | 
| default List<FlwTask> | FlwTaskMapper. selectListByParentTaskId(Long parentTaskId)根据父任务ID获取任务列表 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| FlwTask | FlwTaskDaoImpl. selectById(Long id) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| List<FlwTask> | FlwTaskDaoImpl. selectListByInstanceId(Long instanceId) | 
| List<FlwTask> | FlwTaskDaoImpl. selectListByInstanceIdAndTaskKey(Long instanceId,
                                String taskKey) | 
| List<FlwTask> | FlwTaskDaoImpl. selectListByInstanceIdAndTaskName(Long instanceId,
                                 String taskName) | 
| List<FlwTask> | FlwTaskDaoImpl. selectListByInstanceIdAndTaskNames(Long instanceId,
                                  List<String> taskNames) | 
| List<FlwTask> | FlwTaskDaoImpl. selectListByParentTaskId(Long parentTaskId) | 
| List<FlwTask> | FlwTaskDaoImpl. selectListByParentTaskIds(List<Long> parentTaskIds) | 
| List<FlwTask> | FlwTaskDaoImpl. selectListTimeoutOrRemindTasks(Date currentDate) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| boolean | FlwTaskDaoImpl. insert(FlwTask flwTask) | 
| boolean | FlwTaskDaoImpl. updateById(FlwTask flwTask) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| boolean | EventTaskListener. notify(TaskEventType eventType,
      Supplier<FlwTask> supplier,
      NodeModel nodeModel,
      FlowCreator flowCreator) | 
Copyright © 2025. All rights reserved.