类的使用
net.sohelp.boot.engine.workflow.core.FlowContext
使用FlowContext的程序包
程序包
说明
-
net.sohelp.boot.demo.core.workflow中FlowContext的使用
修饰符和类型方法说明WorkflowTaskReminder.remind(FlowContext context, Long instanceId, FlwTask currentTask) 执行任务提醒逻辑 -
net.sohelp.boot.engine.workflow中FlowContext的使用
修饰符和类型方法说明voidTaskCreateInterceptor.after(FlowContext flowLongContext, Execution execution) 拦截后置处理方法default voidTaskCreateInterceptor.before(FlowContext flowLongContext, Execution execution) 拦截前置处理方法FlowEngine.configure(FlowContext config) 根据Configuration对象配置实现类booleanModelInstance.execute(FlowContext flowLongContext, Execution execution) 执行流程元素TaskReminder.remind(FlowContext context, Long instanceId, FlwTask currentTask) 提醒操作 -
net.sohelp.boot.engine.workflow.core中FlowContext的使用
修饰符和类型方法说明FlowContext.build(FlowEngine configEngine, boolean banner) 默认初始化流程引擎上下文FlowEngineImpl.getContext()修饰符和类型方法说明FlowEngineImpl.configure(FlowContext flowLongContext) booleanExecution.executeNodeModel(FlowContext flowLongContext, String nodeKey) 执行节点模型 -
net.sohelp.boot.engine.workflow.entity中FlowContext的使用
修饰符和类型方法说明FlwProcess.executeStartModel(FlowContext flowLongContext, FlowCreator flowCreator, boolean saveAsDraft, Function<NodeModel, Execution> function) 执行开始模型 -
net.sohelp.boot.engine.workflow.handler中FlowContext的使用
修饰符和类型方法说明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 booleanFlowAiHandler.onAsyncComplete(FlowContext flowLongContext, String asyncToken, AiResponse aiResponse) 异步回调处理:当 AI 异步处理完成后调用booleanFlowAiHandler.processAiResponse(FlowContext flowLongContext, Execution execution, NodeModel nodeModel, AiResponse aiResponse) 处理 AI 相应对象逻辑 -
net.sohelp.boot.engine.workflow.handler.impl中FlowContext的使用
修饰符和类型方法说明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.model中FlowContext的使用
修饰符和类型方法说明booleanNodeModel.execute(FlowContext flowLongContext, Execution execution) 执行节点voidNodeModel.executeConditionNode(FlowContext flowLongContext, Execution execution, ConditionNode conditionNode) 执行条件节点分支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) 动态获取下一个节点static voidModelHelper.reloadProcessModel(FlowContext flowLongContext, Long flwInstanceId, ProcessModel processModel) 重新加载流程模型 -
net.sohelp.boot.engine.workflow.spring.autoconfigure中FlowContext的使用
修饰符和类型方法说明FlowAutoConfiguration.FlowContext(ProcessService processService, QueryService queryService, RuntimeService runtimeService, TaskService taskService, FlowExpression FlowExpression, TaskAccessStrategy taskAccessStrategy, TaskActorProvider taskActorProvider, FlowEngine FlowEngine, FlowProperties flp, FlowCache flowCache, ProcessModelParser processModelParser, FlowJsonHandler flowJsonHandler, com.fasterxml.jackson.databind.ObjectMapper objectMapper, FlowCreateTimeHandler flowCreateTimeHandler, FlowAiHandler flowAiHandler, ConditionNodeHandler conditionNodeHandler, TaskCreateInterceptor taskCreateInterceptor, CreateTaskHandler createTaskHandler, TaskReminder taskReminder, TaskTrigger taskTrigger)