类的使用
net.sohelp.boot.engine.workflow.entity.FlwTask
使用FlwTask的程序包
程序包
说明
-
net.sohelp.boot.demo.core.workflow中FlwTask的使用
修饰符和类型方法说明WorkflowTaskReminder.remind(FlowContext context, Long instanceId, FlwTask currentTask) 执行任务提醒逻辑类型变量类型为FlwTask的net.sohelp.boot.demo.core.workflow中的方法参数修饰符和类型方法说明booleanWorkflowTaskListener.notify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator) 任务事件通知处理器,根据不同事件类型发送相应通知并更新业务状态 -
net.sohelp.boot.engine.workflow中FlwTask的使用
修饰符和类型方法说明TaskService.claimDepartment(Long taskId, FlowCreator flowCreator) 部门根据 任务ID 认领任务,删除其它任务参与者TaskService.claimRole(Long taskId, FlowCreator flowCreator) 角色根据 任务ID 认领任务,删除其它任务参与者default FlwTaskTaskService.complete(Long taskId, FlowCreator flowCreator) default FlwTask根据任务ID,创建人ID完成任务TaskService.executeTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) 根据任务ID,创建人ID完成任务根据任务ID获取任务对象返回变量类型为FlwTask的类型的net.sohelp.boot.engine.workflow中的方法修饰符和类型方法说明FlowEngine.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Map<String, Object> args) 根据已有任务、参与者创建新的任务TaskService.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务TaskService.createTask(NodeModel taskModel, Execution execution) TaskService.createTask(NodeModel taskModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 根据任务模型、执行对象创建新的任务FlowEngine.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, TaskType taskType) TaskService.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction, TaskType taskType) 执行节点跳转任务FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator) FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args) FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination) 根据当前任务对象驳回至指定 nodeKey 节点,如果 nodeKey 为空默认为上一步处理FlowEngine.executeRejectTask(FlwTask currentFlwTask, FlowCreator flowCreator) FlowEngine.executeRejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args) QueryService.getActiveTasks(Long instanceId, List<String> taskNames) 根据实例ID和任务节点名称获取当前节点激活的任务QueryService.getActiveTasksByInstanceId(Long instanceId) 根据 流程实例ID 获取当前活动任务列表QueryService.getActiveTasksByInstanceIdAndTaskName(Long instanceId, String taskName) QueryService.getTasksByInstanceId(Long instanceId) 通过流程实例ID获取任务列表QueryService.getTasksByInstanceIdAndTaskKey(Long instanceId, String taskKey) 通过流程实例ID和任务key获取任务列表QueryService.getTasksByInstanceIdAndTaskName(Long instanceId, String taskName) TaskService.getTimeoutOrRemindTasks()获取超时或者提醒的任务TaskService.reclaimTask(Long taskId, FlowCreator flowCreator) TaskService.reclaimTask(Long taskId, FlowCreator flowCreator, BiConsumer<FlwHisTask, Integer> assertConsumer) 拿回任务、在当前办理人尚未处理文件前,允许上一节点提交人员执行拿回TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator) TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args) TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) 根据当前任务对象驳回至上一步处理TaskService.withdrawTask(Long taskId, FlowCreator flowCreator) 根据任务ID、创建人撤回任务(该任务后续任务未执行前有效)参数类型为FlwTask的net.sohelp.boot.engine.workflow中的方法修饰符和类型方法说明default booleanTaskActorProvider.abnormal(FlwTask flwTask, PerformType performType, List<FlwTaskActor> taskActors, Execution execution, NodeModel nodeModel) 非正常创建任务处理逻辑,默认抛出异常default booleanFlowEngine.autoRejectTask(FlwTask flwTask) booleanFlowEngine.autoRejectTask(FlwTask flwTask, Map<String, Object> args, FlowCreator flowCreator) 自动拒绝任务default booleanFlowEngine.autoRejectTask(FlwTask flwTask, FlowCreator flowCreator) default booleanFlowEngine.createCcTask(FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务booleanFlowEngine.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务booleanTaskService.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator) FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args) FlowEngine.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination) 根据当前任务对象驳回至指定 nodeKey 节点,如果 nodeKey 为空默认为上一步处理FlowEngine.executeRejectTask(FlwTask currentFlwTask, FlowCreator flowCreator) FlowEngine.executeRejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args) booleanTaskService.executeTaskTrigger(Execution execution, FlwTask flwTask) 执行触发器任务booleanTaskService.forceCompleteAllTask(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceState instanceState, TaskEventType eventType) 强制完成所有任务booleanTaskService.forceCompleteTask(FlwTask flwTask, FlowCreator flowCreator, TaskState taskState, TaskEventType eventType) 强制完成某个任务根据 taskId、createBy 判断创建人createBy是否允许执行任务booleanRuntimeService.reject(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例拒绝审批强制终止(用于后续审核人员认为该审批不再需要继续,拒绝审批强行终止)TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator) TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args) TaskService.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) 根据当前任务对象驳回至上一步处理TaskReminder.remind(FlowContext context, Long instanceId, FlwTask currentTask) 提醒操作booleanRuntimeService.revoke(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例撤销(用于错误发起审批申请,发起人主动撤销)booleanRuntimeService.terminate(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例强制终止booleanRuntimeService.timeout(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 流程实例超时(设定审批时间超时,自动结束)voidTaskService.updateTaskById(FlwTask flwTask, FlowCreator flowCreator) 更新任务对象类型变量类型为FlwTask的net.sohelp.boot.engine.workflow中的方法参数修饰符和类型方法说明booleanTaskService.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators, Map<String, Object> args, Function<FlwTask, Boolean> check) 根据 任务ID 分配任务给指定办理人、重置任务类型TaskService.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务TaskService.createTask(NodeModel taskModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 根据任务模型、执行对象创建新的任务TaskService.createTask(NodeModel taskModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 根据任务模型、执行对象创建新的任务default booleanTaskService.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) default booleanTaskService.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction) TaskService.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction, TaskType taskType) 执行节点跳转任务 -
net.sohelp.boot.engine.workflow.core中FlwTask的使用
返回变量类型为FlwTask的类型的net.sohelp.boot.engine.workflow.core中的方法修饰符和类型方法说明FlowEngineImpl.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Map<String, Object> args) FlowEngineImpl.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, TaskType taskType) FlowEngineImpl.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination) FlowEngineImpl.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination, Supplier<Optional<List<FlwTask>>> terminateProcess) 修饰符和类型方法说明booleanExecution.abnormal(FlwTask flwTask, PerformType performType, List<FlwTaskActor> taskActors, NodeModel nodeModel) 非正常创建任务处理逻辑,默认抛出异常void添加任务booleanFlowEngineImpl.autoRejectTask(FlwTask flwTask, Map<String, Object> args, FlowCreator flowCreator) 自动拒绝任务booleanFlowEngineImpl.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务protected ExecutionFlowEngineImpl.createExecution(ProcessModel processModel, FlwInstance flwInstance, FlwTask flwTask, FlowCreator flowCreator, Map<String, Object> args) FlowEngineImpl.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination) FlowEngineImpl.executeRejectTask(FlwTask currentFlwTask, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, boolean termination, Supplier<Optional<List<FlwTask>>> terminateProcess) 类型变量类型为FlwTask的net.sohelp.boot.engine.workflow.core中的方法参数 -
net.sohelp.boot.engine.workflow.dao中FlwTask的使用
返回变量类型为FlwTask的类型的net.sohelp.boot.engine.workflow.dao中的方法修饰符和类型方法说明FlwTaskDao.selectListByInstanceId(Long instanceId) FlwTaskDao.selectListByInstanceIdAndTaskKey(Long instanceId, String taskKey) 根据流程实例ID和任务KEY查询任务FlwTaskDao.selectListByInstanceIdAndTaskName(Long instanceId, String taskName) FlwTaskDao.selectListByInstanceIdAndTaskNames(Long instanceId, List<String> taskNames) FlwTaskDao.selectListByParentTaskId(Long parentTaskId) FlwTaskDao.selectListByParentTaskIds(List<Long> parentTaskIds) FlwTaskDao.selectListTimeoutOrRemindTasks(Date currentDate) -
net.sohelp.boot.engine.workflow.entity中FlwTask的使用
修饰符和类型方法说明FlwTask.cloneTask(FlowIdGenerator flowLongIdGenerator, String createId, String createBy) FlwTask.cloneTask(FlowIdGenerator flowLongIdGenerator, FlwHisTaskActor hta) FlwTask.putAllVariable(Map<String, Object> args) FlwHisTask.undoTask(FlowIdGenerator flowLongIdGenerator, TaskType taskType) 根据历史任务产生撤回的任务对象修饰符和类型方法说明static FlwHisTaskstatic FlwHisTaskstatic FlwTaskActorFlwTaskActor.of(FlowCreator flowCreator, FlwTask flwTask) static FlwTaskActorFlwTaskActor.ofAgent(AgentType agentType, FlowCreator flowCreator, FlwTask flwTask, FlwTaskActor agentTaskActor) static FlwTaskActor -
net.sohelp.boot.engine.workflow.impl中FlwTask的使用
修饰符和类型方法说明protected FlwTaskTaskServiceImpl.claim(Long taskId, AgentType agentType, TaskEventType eventType, FlowCreator flowCreator) 根据 任务ID 认领任务,删除其它任务参与者TaskServiceImpl.claimDepartment(Long taskId, FlowCreator flowCreator) TaskServiceImpl.claimRole(Long taskId, FlowCreator flowCreator) protected FlwTaskTaskServiceImpl.createTaskBase(NodeModel nodeModel, Execution execution) 根据模型、执行对象、任务类型构建基本的task对象TaskServiceImpl.executeTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) 执行任务protected FlwTaskTaskServiceImpl.getAllowedFlwTask(Long taskId, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState) 获取执行任务并验证合法性返回变量类型为FlwTask的类型的net.sohelp.boot.engine.workflow.impl中的方法修饰符和类型方法说明TaskServiceImpl.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务TaskServiceImpl.createTask(NodeModel nodeModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 创建 task 根据 model 决定是否分配参与者TaskServiceImpl.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction, TaskType taskType) 执行节点跳转任务QueryServiceImpl.getActiveTasks(Long instanceId, List<String> taskNames) QueryServiceImpl.getTasksByInstanceId(Long instanceId) QueryServiceImpl.getTasksByInstanceIdAndTaskKey(Long instanceId, String taskKey) QueryServiceImpl.getTasksByInstanceIdAndTaskName(Long instanceId, String taskName) TaskServiceImpl.getTimeoutOrRemindTasks()获取超时或者提醒的任务TaskServiceImpl.reclaimTask(Long taskId, FlowCreator flowCreator, BiConsumer<FlwHisTask, Integer> assertConsumer) 拿回任务、根据历史任务ID撤回下一个节点的任务、恢复历史任务TaskServiceImpl.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) TaskServiceImpl.saveTask(FlwTask flwTask, PerformType performType, List<FlwTaskActor> taskActors, Execution execution, NodeModel nodeModel) 保存任务及参与者信息TaskServiceImpl.undoHisTask(Long hisTaskId, FlowCreator flowCreator, TaskType taskType, Consumer<FlwHisTask> hisTaskConsumer) 撤回历史任务TaskServiceImpl.withdrawTask(Long taskId, FlowCreator flowCreator) 撤回指定的任务修饰符和类型方法说明booleanTaskServiceImpl.createCcTask(NodeModel taskModel, FlwTask flwTask, List<NodeAssignee> ccUserList, FlowCreator flowCreator) 创建抄送任务booleanTaskServiceImpl.executeTaskTrigger(Execution execution, FlwTask flwTask) protected voidTaskServiceImpl.executeTaskTrigger(NodeModel nodeModel, Execution execution, List<FlwTask> flwTasks, FlwTask flwTask, List<FlwTaskActor> taskActors) 执行任务触发器protected booleanRuntimeServiceImpl.forceComplete(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceEventType instanceEventType, InstanceState instanceState, TaskEventType eventType) 强制完成流程实例protected voidRuntimeServiceImpl.forceCompleteAll(FlwInstance flwInstance, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceEventType instanceEventType, InstanceState instanceState, TaskEventType eventType) 强制完成流程所有实例booleanTaskServiceImpl.forceCompleteAllTask(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator, InstanceState instanceState, TaskEventType eventType) 强制完成所有任务booleanTaskServiceImpl.forceCompleteTask(FlwTask flwTask, FlowCreator flowCreator, TaskState taskState, TaskEventType eventType) 根据 taskId、createId 判断创建人是否允许执行任务protected booleanTaskServiceImpl.moveToHisTask(FlwTask flwTask, TaskState taskState, FlowCreator flowCreator) 迁移任务至历史表protected booleanTaskServiceImpl.moveToHisTaskTrigger(FlwTask flwTask, FlowCreator flowCreator) 触发器任务归档booleanRuntimeServiceImpl.reject(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) TaskServiceImpl.rejectTask(FlwTask currentFlwTask, FlowCreator flowCreator, Map<String, Object> args, TaskState taskState, TaskEventType eventType) booleanRuntimeServiceImpl.revoke(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) TaskServiceImpl.saveTask(FlwTask flwTask, PerformType performType, List<FlwTaskActor> taskActors, Execution execution, NodeModel nodeModel) 保存任务及参与者信息booleanRuntimeServiceImpl.terminate(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) 强制终止活动实例,并强制完成活动任务booleanRuntimeServiceImpl.timeout(Long instanceId, FlwTask currentFlwTask, FlowCreator flowCreator) protected voidTaskServiceImpl.updateCurrentNode(FlwTask flwTask, InstanceState instanceState) 更新当前执行节点信息voidTaskServiceImpl.updateTaskById(FlwTask flwTask, FlowCreator flowCreator) 更新任务对象的 finishTime、createBy、expireTime、version、variable类型变量类型为FlwTask的net.sohelp.boot.engine.workflow.impl中的方法参数修饰符和类型方法说明booleanTaskServiceImpl.assigneeTask(Long taskId, TaskType taskType, TaskEventType taskEventType, FlowCreator flowCreator, List<FlowCreator> assigneeFlowCreators, Map<String, Object> args, Function<FlwTask, Boolean> check) 根据 任务ID 分配任务给指定办理人、重置任务类型TaskServiceImpl.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务TaskServiceImpl.createTask(NodeModel nodeModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 创建 task 根据 model 决定是否分配参与者TaskServiceImpl.createTask(NodeModel nodeModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 创建 task 根据 model 决定是否分配参与者TaskServiceImpl.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction, TaskType taskType) 执行节点跳转任务protected voidTaskServiceImpl.executeTaskTrigger(NodeModel nodeModel, Execution execution, List<FlwTask> flwTasks, FlwTask flwTask, List<FlwTaskActor> taskActors) 执行任务触发器protected voidTaskServiceImpl.taskNotify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator) -
net.sohelp.boot.engine.workflow.listener中FlwTask的使用
类型变量类型为FlwTask的net.sohelp.boot.engine.workflow.listener中的方法参数修饰符和类型方法说明booleanTaskListener.notify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator) 流程引擎监听通知 -
net.sohelp.boot.engine.workflow.mapper中FlwTask的使用
返回变量类型为FlwTask的类型的net.sohelp.boot.engine.workflow.mapper中的方法修饰符和类型方法说明FlwTaskMapper.selectListByInstanceId(Long instanceId) 根据流程实例ID获取任务列表FlwTaskMapper.selectListByParentTaskId(Long parentTaskId) 根据父任务ID获取任务列表 -
net.sohelp.boot.engine.workflow.mapper.impl中FlwTask的使用
返回变量类型为FlwTask的类型的net.sohelp.boot.engine.workflow.mapper.impl中的方法修饰符和类型方法说明FlwTaskDaoImpl.selectListByInstanceId(Long instanceId) FlwTaskDaoImpl.selectListByInstanceIdAndTaskKey(Long instanceId, String taskKey) FlwTaskDaoImpl.selectListByInstanceIdAndTaskName(Long instanceId, String taskName) FlwTaskDaoImpl.selectListByInstanceIdAndTaskNames(Long instanceId, List<String> taskNames) FlwTaskDaoImpl.selectListByParentTaskId(Long parentTaskId) FlwTaskDaoImpl.selectListByParentTaskIds(List<Long> parentTaskIds) FlwTaskDaoImpl.selectListTimeoutOrRemindTasks(Date currentDate) -
net.sohelp.boot.engine.workflow.spring.event中FlwTask的使用
类型变量类型为FlwTask的net.sohelp.boot.engine.workflow.spring.event中的方法参数修饰符和类型方法说明booleanEventTaskListener.notify(TaskEventType eventType, Supplier<FlwTask> supplier, List<FlwTaskActor> taskActors, NodeModel nodeModel, FlowCreator flowCreator)