类的使用
net.sohelp.boot.engine.workflow.core.Execution
使用Execution的程序包
程序包
说明
-
net.sohelp.boot.engine.workflow中Execution的使用
参数类型为Execution的net.sohelp.boot.engine.workflow中的方法修饰符和类型方法说明default booleanTaskActorProvider.abnormal(FlwTask flwTask, PerformType performType, List<FlwTaskActor> taskActors, Execution execution, NodeModel nodeModel) 非正常创建任务处理逻辑,默认抛出异常voidTaskCreateInterceptor.after(FlowContext flowLongContext, Execution execution) 拦截后置处理方法default voidTaskCreateInterceptor.before(FlowContext flowLongContext, Execution execution) 拦截前置处理方法TaskService.createTask(NodeModel taskModel, Execution execution) TaskService.createTask(NodeModel taskModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 根据任务模型、执行对象创建新的任务booleanRuntimeService.endInstance(Execution execution, Long instanceId, NodeModel endNode, InstanceState instanceState) 结束流程实例(审批通过)booleanModelInstance.execute(FlowContext flowLongContext, Execution execution) 执行流程元素boolean执行任务触发器节点booleanTaskService.executeFinishTrigger(NodeModel nodeModel, Execution execution, FlowCreator flowCreator) 执行完成触发器操作流程继续往下执行booleanTaskService.executeTaskTrigger(Execution execution, FlwTask flwTask) 执行触发器任务default List<NodeAssignee> TaskActorProvider.getNodeAssigneeList(NodeModel nodeModel, Execution execution) 动态获取分配到任务的处理者列表TaskActorProvider.getTaskActors(NodeModel nodeModel, Execution execution) 根据Task模型的assignee、assignmentHandler属性以及运行时数据,确定参与者voidFlowEngine.restartProcessInstance(Long id, String currentNode, Execution execution) 重启流程实例(从当前所在节点currentNode位置开始)类型变量类型为Execution的net.sohelp.boot.engine.workflow中的方法参数修饰符和类型方法说明TaskService.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务boolean执行任务触发器节点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中Execution的使用
修饰符和类型方法说明protected ExecutionFlowEngineImpl.createExecution(ProcessModel processModel, FlwInstance flwInstance, FlwTask flwTask, FlowCreator flowCreator, Map<String, Object> args) Execution.createSubExecution(Execution execution, ProcessModel processModel, String parentNodeName) 根据当前执行对象execution、子流程定义process、当前节点名称产生子流程的执行对象Execution.finishJump()Execution.saveAsDraft()修饰符和类型方法说明Execution.createSubExecution(Execution execution, ProcessModel processModel, String parentNodeName) 根据当前执行对象execution、子流程定义process、当前节点名称产生子流程的执行对象booleanFlowContext.createTask(Execution execution, NodeModel nodeModel) 创建流程任务voidFlowEngineImpl.restartProcessInstance(Long id, String currentNodeKey, Execution execution) 重启流程实例(从当前所在节点currentNode位置开始) -
net.sohelp.boot.engine.workflow.entity中Execution的使用
类型变量类型为Execution的net.sohelp.boot.engine.workflow.entity中的方法参数修饰符和类型方法说明FlwProcess.executeStartModel(FlowContext flowLongContext, FlowCreator flowCreator, boolean saveAsDraft, Function<NodeModel, Execution> function) 执行开始模型 -
net.sohelp.boot.engine.workflow.handler中Execution的使用
修饰符和类型方法说明FlowAiHandler.decideInclusiveRoutes(FlowContext flowLongContext, Execution execution, NodeModel nodeModel, Map<String, Object> args) AI 智能包容分支决策:返回应该同时执行的多个分支 NodeKey 列表default StringFlowAiHandler.decideRoute(FlowContext flowLongContext, Execution execution, NodeModel nodeModel, Map<String, Object> args) AI 智能路由决策:直接返回应该走的分支 NodeKeyFlowAiHandler.execute(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) 执行 AI 处理并返回结构化响应ConditionNodeHandler.getConditionNode(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) 获取满足条件的条件节点ConditionNodeHandler.getInclusiveNodes(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) 获取满足条件的所有包容分支节点ConditionNodeHandler.getRouteNode(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) 获取满足条件的路由节点booleanCreateTaskHandler.handle(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) 子类需要实现的方法,来处理具体的操作default booleanFlowAiHandler.handle(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) default voidFlowAiHandler.mergeAiVariables(Execution execution, AiResponse aiResponse, AiConfig aiConfig) 合并 AI 提取的变量到执行参数booleanFlowAiHandler.processAiResponse(FlowContext flowLongContext, Execution execution, NodeModel nodeModel, AiResponse aiResponse) 处理 AI 相应对象逻辑 -
net.sohelp.boot.engine.workflow.handler.impl中Execution的使用
修饰符和类型方法说明SimpleConditionNodeHandler.getArgs(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) SimpleConditionNodeHandler.getConditionNode(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) SimpleConditionNodeHandler.getConditionNode(FlowContext flowLongContext, Execution execution, NodeModel nodeModel, List<ConditionNode> conditionNodes) SimpleConditionNodeHandler.getInclusiveNodes(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) SimpleConditionNodeHandler.getRouteNode(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) booleanSimpleCreateTaskHandler.handle(FlowContext flowLongContext, Execution execution, NodeModel nodeModel) 根据任务模型、执行对象,创建下一个任务,并添加到execution对象的tasks集合中SimpleConditionNodeHandler.matchConditionNode(FlowContext flowLongContext, Execution execution, NodeModel nodeModel, List<ConditionNode> conditionNodes) -
net.sohelp.boot.engine.workflow.impl中Execution的使用
修饰符和类型方法说明TaskServiceImpl.createTask(NodeModel nodeModel, Execution execution, Function<FlwTask, FlwTask> taskFunction) 创建 task 根据 model 决定是否分配参与者protected FlwTaskTaskServiceImpl.createTaskBase(NodeModel nodeModel, Execution execution) 根据模型、执行对象、任务类型构建基本的task对象booleanRuntimeServiceImpl.endInstance(Execution execution, Long instanceId, NodeModel endNode, InstanceState instanceState) 删除活动流程实例数据,更新历史流程实例的状态、结束时间booleanTaskServiceImpl.executeFinishTrigger(NodeModel nodeModel, Execution execution, FlowCreator flowCreator) booleanTaskServiceImpl.executeTaskTrigger(Execution execution, FlwTask flwTask) protected voidTaskServiceImpl.executeTaskTrigger(NodeModel nodeModel, Execution execution, List<FlwTask> flwTasks, FlwTask flwTask, List<FlwTaskActor> taskActors) 执行任务触发器GeneralTaskActorProvider.getTaskActors(NodeModel nodeModel, Execution execution) TaskServiceImpl.saveTask(FlwTask flwTask, PerformType performType, List<FlwTaskActor> taskActors, Execution execution, NodeModel nodeModel) 保存任务及参与者信息类型变量类型为Execution的net.sohelp.boot.engine.workflow.impl中的方法参数修饰符和类型方法说明TaskServiceImpl.createNewTask(Long taskId, TaskType taskType, PerformType performType, List<FlwTaskActor> taskActors, FlowCreator flowCreator, Function<FlwTask, Execution> executionFunction) 根据已有任务、参与者创建新的任务TaskServiceImpl.executeJumpTask(Long taskId, String nodeKey, FlowCreator flowCreator, Map<String, Object> args, Function<FlwTask, Execution> executionFunction, TaskType taskType) 执行节点跳转任务 -
net.sohelp.boot.engine.workflow.model中Execution的使用
修饰符和类型方法说明booleanNodeModel.execute(FlowContext flowLongContext, Execution execution) 执行节点voidNodeModel.executeConditionNode(FlowContext flowLongContext, Execution execution, ConditionNode conditionNode) 执行条件节点分支booleanNodeModel.executeTrigger(Execution execution, Supplier<Boolean> supplier, Function<Execution, Boolean> callAsync) 执行触发器ModelHelper.getAllUsedNodeKeys(FlowContext flowLongContext, Execution execution, NodeModel rootNodeModel, String currentNodeKey) 获取当前已使用的节点key列表static voidModelHelper.getChildAllUsedNodeKeys(List<String> currentUsedNodeKeys, FlowContext flowLongContext, Execution execution, NodeModel rootNodeModel, String currentNodeKey) 获取已使用所有的子节点key列表ModelHelper.getNextChildNodes(FlowContext flowLongContext, Execution execution, NodeModel rootNodeModel, String currentNodeKey) 动态获取下一个节点NodeModel.nextNodeAssignee(Execution execution, String assigneeId) 类型变量类型为Execution的net.sohelp.boot.engine.workflow.model中的方法参数