限定符和类型 | 方法和说明 |
---|---|
default boolean |
TaskActorProvider.abnormal(FlwTask flwTask,
PerformType performType,
List<FlwTaskActor> taskActors,
Execution execution,
NodeModel nodeModel)
非正常创建任务处理逻辑,默认抛出异常
|
void |
TaskCreateInterceptor.after(FlowContext flowLongContext,
Execution execution)
拦截后置处理方法
|
default void |
TaskCreateInterceptor.before(FlowContext flowLongContext,
Execution execution)
拦截前置处理方法
|
default List<FlwTask> |
TaskService.createTask(NodeModel taskModel,
Execution execution) |
List<FlwTask> |
TaskService.createTask(NodeModel taskModel,
Execution execution,
Function<FlwTask,FlwTask> taskFunction)
根据任务模型、执行对象创建新的任务
|
boolean |
RuntimeService.endInstance(Execution execution,
Long instanceId,
NodeModel endNode)
结束流程实例(审批通过)
|
boolean |
ModelInstance.execute(FlowContext flowLongContext,
Execution execution)
执行流程元素
|
boolean |
TaskTrigger.execute(NodeModel nodeModel,
Execution execution)
执行任务触发器节点
|
boolean |
TaskService.executeTaskTrigger(Execution execution,
FlwTask flwTask)
执行触发器任务
|
List<FlwTaskActor> |
TaskActorProvider.getTaskActors(NodeModel nodeModel,
Execution execution)
根据Task模型的assignee、assignmentHandler属性以及运行时数据,确定参与者
|
void |
FlowEngine.restartProcessInstance(Long id,
String currentNode,
Execution execution)
重启流程实例(从当前所在节点currentNode位置开始)
|
限定符和类型 | 方法和说明 |
---|---|
List<FlwTask> |
TaskService.createNewTask(Long taskId,
TaskType taskType,
PerformType performType,
List<FlwTaskActor> taskActors,
FlowCreator flowCreator,
Function<FlwTask,Execution> executionFunction)
根据已有任务、参与者创建新的任务
适用于动态转派,动态协办等处理且流程图中不体现节点情况
|
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)
执行节点跳转任务
|
限定符和类型 | 方法和说明 |
---|---|
protected Execution |
FlowEngineImpl.createExecution(ProcessModel processModel,
FlwInstance flwInstance,
FlwTask flwTask,
FlowCreator flowCreator,
Map<String,Object> args) |
Execution |
Execution.createSubExecution(Execution execution,
ProcessModel processModel,
String parentNodeName)
根据当前执行对象execution、子流程定义process、当前节点名称产生子流程的执行对象
|
限定符和类型 | 方法和说明 |
---|---|
Execution |
Execution.createSubExecution(Execution execution,
ProcessModel processModel,
String parentNodeName)
根据当前执行对象execution、子流程定义process、当前节点名称产生子流程的执行对象
|
boolean |
FlowContext.createTask(Execution execution,
NodeModel nodeModel)
创建流程任务
|
void |
FlowEngineImpl.restartProcessInstance(Long id,
String currentNodeKey,
Execution execution)
重启流程实例(从当前所在节点currentNode位置开始)
|
限定符和类型 | 方法和说明 |
---|---|
Optional<FlwInstance> |
FlwProcess.executeStartModel(FlowContext flowLongContext,
FlowCreator flowCreator,
Function<NodeModel,Execution> function)
执行开始模型
|
限定符和类型 | 方法和说明 |
---|---|
Optional<ConditionNode> |
ConditionNodeHandler.getConditionNode(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel)
获取满足条件的条件节点
子类需要实现的方法,来处理具体的操作
|
Optional<List<ConditionNode>> |
ConditionNodeHandler.getInclusiveNodes(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel)
获取满足条件的所有包容分支节点
子类需要实现的方法,来处理具体的操作
|
Optional<ConditionNode> |
ConditionNodeHandler.getRouteNode(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel)
获取满足条件的路由节点
子类需要实现的方法,来处理具体的操作
|
boolean |
CreateTaskHandler.handle(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel)
子类需要实现的方法,来处理具体的操作
|
限定符和类型 | 方法和说明 |
---|---|
Map<String,Object> |
SimpleConditionNodeHandler.getArgs(FlowContext flowLongContext,
Execution execution) |
Optional<ConditionNode> |
SimpleConditionNodeHandler.getConditionNode(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel) |
Optional<List<ConditionNode>> |
SimpleConditionNodeHandler.getInclusiveNodes(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel) |
Optional<ConditionNode> |
SimpleConditionNodeHandler.getRouteNode(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel) |
boolean |
SimpleCreateTaskHandler.handle(FlowContext flowLongContext,
Execution execution,
NodeModel nodeModel)
根据任务模型、执行对象,创建下一个任务,并添加到execution对象的tasks集合中
|
Optional<ConditionNode> |
SimpleConditionNodeHandler.matchConditionNode(FlowContext flowLongContext,
Execution execution,
List<ConditionNode> conditionNodes) |
限定符和类型 | 方法和说明 |
---|---|
List<FlwTask> |
TaskServiceImpl.createTask(NodeModel nodeModel,
Execution execution,
Function<FlwTask,FlwTask> taskFunction)
创建 task 根据 model 决定是否分配参与者
|
boolean |
RuntimeServiceImpl.endInstance(Execution execution,
Long instanceId,
NodeModel endNode)
删除活动流程实例数据,更新历史流程实例的状态、结束时间
|
boolean |
TaskServiceImpl.executeTaskTrigger(Execution execution,
FlwTask flwTask) |
List<FlwTaskActor> |
GeneralTaskActorProvider.getTaskActors(NodeModel nodeModel,
Execution execution) |
protected List<FlwTask> |
TaskServiceImpl.saveTask(FlwTask flwTask,
PerformType performType,
List<FlwTaskActor> taskActors,
Execution execution,
NodeModel nodeModel)
保存任务及参与者信息
|
限定符和类型 | 方法和说明 |
---|---|
List<FlwTask> |
TaskServiceImpl.createNewTask(Long taskId,
TaskType taskType,
PerformType performType,
List<FlwTaskActor> taskActors,
FlowCreator flowCreator,
Function<FlwTask,Execution> executionFunction)
根据已有任务、参与者创建新的任务
适用于动态转派,动态协办等处理且流程图中不体现节点情况
|
Optional<FlwTask> |
TaskServiceImpl.executeJumpTask(Long taskId,
String nodeKey,
FlowCreator flowCreator,
Map<String,Object> args,
Function<FlwTask,Execution> executionFunction,
TaskType taskTye)
执行节点跳转任务
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
NodeModel.execute(FlowContext flowLongContext,
Execution execution)
执行节点
|
void |
NodeModel.executeConditionNode(FlowContext flowLongContext,
Execution execution,
ConditionNode conditionNode)
执行条件节点分支
|
void |
NodeModel.executeTrigger(Execution execution,
Function<Exception,Boolean> function)
执行触发器
|
static List<String> |
ModelHelper.getAllUsedNodeKeys(FlowContext flowLongContext,
Execution execution,
NodeModel rootNodeModel,
String currentNodeKey)
获取当前已使用的节点key列表
|
static void |
ModelHelper.getChildAllUsedNodeKeys(List<String> currentUsedNodeKeys,
FlowContext flowLongContext,
Execution execution,
NodeModel rootNodeModel,
String currentNodeKey) |
static List<NodeModel> |
ModelHelper.getNextChildNodes(FlowContext flowLongContext,
Execution execution,
NodeModel rootNodeModel,
String currentNodeKey)
动态获取下一个节点
|
Copyright © 2025. All rights reserved.