限定符和类型 | 方法和说明 |
---|---|
FlowCreator |
FlowScheduler.getAutoFlowCreator()
自动完成流程任务创建者
默认为管理员,子类可以重写为自定义用户
|
限定符和类型 | 方法和说明 |
---|---|
default boolean |
TaskService.addTaskActor(Long taskId,
PerformType performType,
FlwTaskActor flwTaskActor,
FlowCreator flowCreator) |
boolean |
TaskService.addTaskActor(Long taskId,
PerformType performType,
List<FlwTaskActor> flwTaskActors,
FlowCreator flowCreator)
向指定的任务ID添加参与者【加签】
|
default boolean |
TaskService.agentTask(Long taskId,
FlowCreator flowCreator,
List<FlowCreator> agentFlowCreators)
根据 任务ID 指定代理人
|
default boolean |
TaskService.assigneeTask(Long taskId,
TaskType taskType,
FlowCreator flowCreator,
List<FlowCreator> assigneeFlowCreators) |
boolean |
TaskService.assigneeTask(Long taskId,
TaskType taskType,
FlowCreator flowCreator,
List<FlowCreator> assigneeFlowCreators,
Function<FlwTask,Boolean> check)
根据 任务ID 分配任务给指定办理人、重置任务类型
|
default boolean |
FlowEngine.autoCompleteTask(Long taskId,
FlowCreator flowCreator) |
boolean |
FlowEngine.autoCompleteTask(Long taskId,
Map<String,Object> args,
FlowCreator flowCreator)
自动完成任务
|
default boolean |
FlowEngine.autoJumpTask(Long taskId,
FlowCreator flowCreator) |
boolean |
FlowEngine.autoJumpTask(Long taskId,
Map<String,Object> args,
FlowCreator flowCreator)
自动跳转任务
|
default boolean |
FlowEngine.autoRejectTask(FlwTask flwTask,
FlowCreator flowCreator) |
boolean |
FlowEngine.autoRejectTask(FlwTask flwTask,
Map<String,Object> args,
FlowCreator flowCreator)
自动拒绝任务
|
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完成任务
该方法仅仅结束活动任务,并不能驱动流程继续执行
|
boolean |
TaskService.completeActiveTasksByInstanceId(Long instanceId,
FlowCreator flowCreator)
完成指定实例ID活动任务
|
FlwInstance |
RuntimeService.createInstance(FlwProcess flwProcess,
FlowCreator flowCreator,
Map<String,Object> args,
NodeModel nodeModel,
Supplier<FlwInstance> supplier)
根据流程、创建人员、父流程实例ID创建流程实例
|
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 boolean |
TaskService.delegateTask(Long taskId,
FlowCreator flowCreator,
FlowCreator assigneeFlowCreator)
根据 任务ID 委派任务、代理人办理完任务该任务重新归还给原处理人
|
default Long |
ProcessService.deploy(InputStream input,
FlowCreator flowCreator,
boolean repeat)
根据InputStream输入流,部署流程定义
|
default Long |
ProcessService.deploy(InputStream input,
FlowCreator flowCreator,
boolean repeat,
Consumer<FlwProcess> processSave)
根据InputStream输入流,部署流程定义
|
Long |
ProcessService.deploy(Long processId,
String jsonString,
FlowCreator flowCreator,
boolean repeat,
Consumer<FlwProcess> processSave)
根据 流程定义jsonString 部署流程定义
|
default Long |
ProcessService.deployByResource(String resourceName,
FlowCreator flowCreator,
boolean repeat)
根据本地 resource 资源名称部署流程
|
default Long |
ProcessService.deployByResource(String resourceName,
FlowCreator flowCreator,
boolean repeat,
Consumer<FlwProcess> processSave)
根据本地 resource 资源名称部署流程
|
default boolean |
FlowEngine.executeAppendNodeModel(Long taskId,
NodeModel nodeModel,
FlowCreator flowCreator,
boolean beforeAfter) |
boolean |
FlowEngine.executeAppendNodeModel(Long taskId,
NodeModel nodeModel,
FlowCreator flowCreator,
Map<String,Object> args,
boolean beforeAfter)
执行追加节点模型
|
default boolean |
FlowEngine.executeJumpTask(Long taskId,
String nodeKey,
FlowCreator flowCreator) |
default boolean |
TaskService.executeJumpTask(Long taskId,
String nodeKey,
FlowCreator flowCreator,
Function<FlwTask,Execution> executionFunction) |
default boolean |
FlowEngine.executeJumpTask(Long taskId,
String nodeKey,
FlowCreator flowCreator,
Map<String,Object> args)
根据任务ID,创建人ID,参数列表执行任务,并且根据nodeName跳转到任意节点
1、nodeName为null时,则跳转至上一步处理
2、nodeName不为null时,则任意跳转,即动态创建转移
|
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)
执行节点跳转任务
|
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 为空默认为上一步处理
|
default boolean |
FlowEngine.executeTask(Long taskId,
FlowCreator flowCreator) |
boolean |
FlowEngine.executeTask(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完成任务
|
boolean |
TaskService.forceCompleteAllTask(Long instanceId,
FlowCreator flowCreator,
InstanceState instanceState,
TaskEventType eventType)
强制完成所有任务
|
default FlwTaskActor |
TaskAccessStrategy.getAllowedFlwTaskActor(Long taskId,
FlowCreator flowCreator,
List<FlwTaskActor> taskActors)
获取指定合法参与者对象
被使用在:分配任务,解决委派任务 场景
|
default boolean |
TaskActorProvider.isAllowed(NodeModel nodeModel,
FlowCreator flowCreator)
流程创建者是否允许操作执行当前节点
|
Optional<FlwTask> |
TaskService.reclaimTask(Long taskId,
FlowCreator flowCreator)
拿回任务、在当前办理人尚未处理文件前,允许上一节点提交人员执行拿回
|
boolean |
RuntimeService.reject(Long instanceId,
FlowCreator flowCreator)
流程实例拒绝审批强制终止(用于后续审核人员认为该审批不再需要继续,拒绝审批强行终止)
|
default Optional<FlwTask> |
TaskService.rejectTask(FlwTask currentFlwTask,
FlowCreator flowCreator) |
Optional<FlwTask> |
TaskService.rejectTask(FlwTask currentFlwTask,
FlowCreator flowCreator,
Map<String,Object> args)
根据当前任务对象驳回至上一步处理
|
boolean |
TaskService.removeTaskActor(Long taskId,
List<String> actorIds,
FlowCreator flowCreator)
对指定的任务ID删除参与者【减签】
|
default boolean |
TaskService.removeTaskActor(Long taskId,
String actorId,
FlowCreator flowCreator) |
boolean |
TaskService.resolveTask(Long taskId,
FlowCreator flowCreator)
根据 任务ID 解决委派任务
|
FlwTask |
TaskService.resume(Long taskId,
FlowCreator flowCreator)
唤醒历史任务
该方法会导致流程状态不可控,请慎用
|
boolean |
RuntimeService.revoke(Long instanceId,
FlowCreator flowCreator)
流程实例撤销(用于错误发起审批申请,发起人主动撤销)
|
void |
RuntimeService.saveInstance(FlwInstance flwInstance,
FlwProcess flwProcess,
FlowCreator flowCreator)
保存流程实例
|
default Optional<FlwInstance> |
FlowEngine.startInstanceById(Long id,
FlowCreator flowCreator) |
default Optional<FlwInstance> |
FlowEngine.startInstanceById(Long id,
FlowCreator flowCreator,
Map<String,Object> args) |
Optional<FlwInstance> |
FlowEngine.startInstanceById(Long id,
FlowCreator flowCreator,
Map<String,Object> args,
Supplier<FlwInstance> supplier)
根据流程定义ID,创建人ID,参数列表启动流程实例
|
default Optional<FlwInstance> |
FlowEngine.startInstanceById(Long id,
FlowCreator flowCreator,
String businessKey) |
default Optional<FlwInstance> |
FlowEngine.startInstanceByProcessKey(String processKey,
FlowCreator flowCreator) |
default Optional<FlwInstance> |
FlowEngine.startInstanceByProcessKey(String processKey,
Integer version,
FlowCreator flowCreator) |
default Optional<FlwInstance> |
FlowEngine.startInstanceByProcessKey(String processKey,
Integer version,
FlowCreator flowCreator,
Map<String,Object> args) |
Optional<FlwInstance> |
FlowEngine.startInstanceByProcessKey(String processKey,
Integer version,
FlowCreator flowCreator,
Map<String,Object> args,
Supplier<FlwInstance> supplier)
根据流程名称、版本号、创建人、参数列表启动流程实例
|
default Optional<FlwInstance> |
FlowEngine.startInstanceByProcessKey(String processKey,
Integer version,
FlowCreator flowCreator,
String businessKey) |
Optional<FlwInstance> |
FlowEngine.startProcessInstance(FlwProcess process,
FlowCreator flowCreator,
Map<String,Object> args,
Supplier<FlwInstance> supplier)
根据流程对象启动流程实例
|
boolean |
RuntimeService.terminate(Long instanceId,
FlowCreator flowCreator)
流程实例强制终止
|
boolean |
RuntimeService.timeout(Long instanceId,
FlowCreator flowCreator)
流程实例超时(设定审批时间超时,自动结束)
|
boolean |
TaskService.transferTask(FlowCreator flowCreator,
FlowCreator assigneeFlowCreator)
参与者的所有任务【离职转办】给指定办理人
用于任务参与者离职
|
default boolean |
TaskService.transferTask(Long taskId,
FlowCreator flowCreator,
FlowCreator assigneeFlowCreator)
根据 任务ID 转办任务
|
void |
TaskService.updateTaskById(FlwTask flwTask,
FlowCreator flowCreator)
更新任务对象
|
Optional<FlwTask> |
TaskService.withdrawTask(Long taskId,
FlowCreator flowCreator)
根据任务ID、创建人撤回任务(该任务后续任务未执行前有效)
|
限定符和类型 | 方法和说明 |
---|---|
default boolean |
TaskService.agentTask(Long taskId,
FlowCreator flowCreator,
List<FlowCreator> agentFlowCreators)
根据 任务ID 指定代理人
|
default boolean |
TaskService.assigneeTask(Long taskId,
TaskType taskType,
FlowCreator flowCreator,
List<FlowCreator> assigneeFlowCreators) |
boolean |
TaskService.assigneeTask(Long taskId,
TaskType taskType,
FlowCreator flowCreator,
List<FlowCreator> assigneeFlowCreators,
Function<FlwTask,Boolean> check)
根据 任务ID 分配任务给指定办理人、重置任务类型
|
限定符和类型 | 字段和说明 |
---|---|
static FlowCreator |
FlowCreator.ADMIN
初始化管理员,用于操作权限忽略等场景
|
限定符和类型 | 方法和说明 |
---|---|
static FlowCreator |
FlowCreator.of(String createId,
String createBy) |
static FlowCreator |
FlowCreator.of(String tenantId,
String createId,
String createBy) |
FlowCreator |
FlowCreator.tenantId(String tenantId) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
FlowEngineImpl.autoCompleteTask(Long taskId,
Map<String,Object> args,
FlowCreator flowCreator)
自动完成任务
|
boolean |
FlowEngineImpl.autoJumpTask(Long taskId,
Map<String,Object> args,
FlowCreator flowCreator)
自动跳转任务
|
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) |
List<FlwTask> |
FlowEngineImpl.createNewTask(Long taskId,
TaskType taskType,
PerformType performType,
List<FlwTaskActor> taskActors,
FlowCreator flowCreator,
Map<String,Object> args) |
boolean |
FlowEngineImpl.executeAppendNodeModel(Long taskId,
NodeModel nodeModel,
FlowCreator flowCreator,
Map<String,Object> args,
boolean beforeAfter) |
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) |
boolean |
FlowEngineImpl.executeTask(Long taskId,
FlowCreator flowCreator,
Map<String,Object> args)
根据任务ID,创建人,参数列表执行任务
|
protected boolean |
FlowEngineImpl.executeTask(Long taskId,
FlowCreator flowCreator,
Map<String,Object> args,
TaskState taskState,
TaskEventType eventType) |
Optional<FlwInstance> |
FlowEngineImpl.startInstanceById(Long id,
FlowCreator flowCreator,
Map<String,Object> args,
Supplier<FlwInstance> supplier)
根据流程定义ID,创建人,参数列表启动流程实例
|
Optional<FlwInstance> |
FlowEngineImpl.startInstanceByProcessKey(String processKey,
Integer version,
FlowCreator flowCreator,
Map<String,Object> args,
Supplier<FlwInstance> supplier)
根据流程定义key、版本号、创建人、参数列表启动流程实例
|
Optional<FlwInstance> |
FlowEngineImpl.startProcessInstance(FlwProcess process,
FlowCreator flowCreator,
Map<String,Object> args,
Supplier<FlwInstance> supplier)
根据流程对象启动流程实例
|
构造器和说明 |
---|
Execution(FlowCreator flowCreator,
Map<String,Object> args)
构造函数,仅适用于模型条件节点查找
|
Execution(FlowEngine engine,
ProcessModel processModel,
FlowCreator flowCreator,
FlwInstance flwInstance,
Map<String,Object> args)
构造函数,接收流程定义、流程实例对象、执行参数
|
限定符和类型 | 方法和说明 |
---|---|
Optional<FlwInstance> |
FlwProcess.executeStartModel(FlowContext flowLongContext,
FlowCreator flowCreator,
Function<NodeModel,Execution> function)
执行开始模型
|
static FlwTaskActor |
FlwTaskActor.of(FlowCreator flowCreator,
FlwTask flwTask) |
static FlwProcess |
FlwProcess.of(FlowCreator flowCreator,
ProcessModel processModel,
int processVersion,
String jsonString) |
static FlwTaskActor |
FlwTaskActor.ofAgent(AgentType agentType,
FlowCreator flowCreator,
FlwTask flwTask,
FlwTaskActor agentTaskActor) |
static FlwTaskActor |
FlwTaskActor.ofAgentIt(FlowCreator flowCreator) |
static FlwTaskActor |
FlwTaskActor.ofFlowCreator(FlowCreator flowCreator) |
void |
FlowEntity.setFlowCreator(FlowCreator flowCreator) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
TaskServiceImpl.addTaskActor(Long taskId,
PerformType performType,
List<FlwTaskActor> flwTaskActors,
FlowCreator flowCreator)
向指定的任务ID添加参与者
|
boolean |
TaskServiceImpl.assigneeTask(Long taskId,
TaskType taskType,
FlowCreator flowCreator,
List<FlowCreator> assigneeFlowCreators,
Function<FlwTask,Boolean> check)
根据 任务ID 分配任务给指定办理人、重置任务类型
|
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) |
boolean |
TaskServiceImpl.completeActiveTasksByInstanceId(Long instanceId,
FlowCreator flowCreator)
完成指定实例ID活动任务
|
FlwInstance |
RuntimeServiceImpl.createInstance(FlwProcess flwProcess,
FlowCreator flowCreator,
Map<String,Object> args,
NodeModel nodeModel,
Supplier<FlwInstance> supplier)
创建活动实例
|
List<FlwTask> |
TaskServiceImpl.createNewTask(Long taskId,
TaskType taskType,
PerformType performType,
List<FlwTaskActor> taskActors,
FlowCreator flowCreator,
Function<FlwTask,Execution> executionFunction)
根据已有任务、参与者创建新的任务
适用于动态转派,动态协办等处理且流程图中不体现节点情况
|
Long |
ProcessServiceImpl.deploy(Long processId,
String jsonString,
FlowCreator flowCreator,
boolean repeat,
Consumer<FlwProcess> processSave)
根据流程定义json字符串,部署流程定义
|
Optional<FlwTask> |
TaskServiceImpl.executeJumpTask(Long taskId,
String nodeKey,
FlowCreator flowCreator,
Map<String,Object> args,
Function<FlwTask,Execution> executionFunction,
TaskType taskTye)
执行节点跳转任务
|
FlwTask |
TaskServiceImpl.executeTask(Long taskId,
FlowCreator flowCreator,
Map<String,Object> args,
TaskState taskState,
TaskEventType eventType)
执行任务
|
protected boolean |
RuntimeServiceImpl.forceComplete(Long instanceId,
FlowCreator flowCreator,
InstanceState instanceState,
TaskEventType eventType)
强制完成流程实例
|
protected void |
RuntimeServiceImpl.forceCompleteAll(FlwInstance flwInstance,
FlowCreator flowCreator,
InstanceState instanceState,
TaskEventType eventType)
强制完成流程所有实例
|
boolean |
TaskServiceImpl.forceCompleteAllTask(Long instanceId,
FlowCreator flowCreator,
InstanceState instanceState,
TaskEventType eventType)
强制完成所有任务
|
protected FlwTask |
TaskServiceImpl.getAllowedFlwTask(Long taskId,
FlowCreator flowCreator,
Map<String,Object> args,
TaskState taskState)
获取执行任务并验证合法性
|
protected FlwTaskActor |
TaskServiceImpl.getAllowedFlwTaskActor(Long taskId,
FlowCreator flowCreator)
获取指定 任务ID 合法参与者对象
|
protected void |
RuntimeServiceImpl.instanceNotify(InstanceEventType eventType,
Supplier<FlwHisInstance> supplier,
FlowCreator flowCreator) |
protected boolean |
TaskServiceImpl.moveToHisTask(FlwTask flwTask,
TaskState taskState,
FlowCreator flowCreator)
迁移任务至历史表
|
Optional<FlwTask> |
TaskServiceImpl.reclaimTask(Long taskId,
FlowCreator flowCreator)
拿回任务、根据历史任务ID撤回下一个节点的任务、恢复历史任务
|
boolean |
RuntimeServiceImpl.reject(Long instanceId,
FlowCreator flowCreator) |
Optional<FlwTask> |
TaskServiceImpl.rejectTask(FlwTask currentFlwTask,
FlowCreator flowCreator,
Map<String,Object> args) |
boolean |
TaskServiceImpl.removeTaskActor(Long taskId,
List<String> actorIds,
FlowCreator flowCreator) |
boolean |
TaskServiceImpl.resolveTask(Long taskId,
FlowCreator flowCreator)
根据 任务ID 解决委派任务
|
FlwTask |
TaskServiceImpl.resume(Long taskId,
FlowCreator flowCreator)
唤醒指定的历史任务
|
boolean |
RuntimeServiceImpl.revoke(Long instanceId,
FlowCreator flowCreator) |
void |
RuntimeServiceImpl.saveInstance(FlwInstance flwInstance,
FlwProcess flwProcess,
FlowCreator flowCreator)
流程实例数据会保存至活动实例表、历史实例表
|
void |
TaskServiceImpl.saveTaskCc(NodeModel nodeModel,
FlwTask flwTask,
FlowCreator flowCreator)
保存抄送任务
|
protected void |
TaskServiceImpl.taskNotify(TaskEventType eventType,
Supplier<FlwTask> supplier,
NodeModel nodeModel,
FlowCreator flowCreator) |
boolean |
RuntimeServiceImpl.terminate(Long instanceId,
FlowCreator flowCreator)
强制终止活动实例,并强制完成活动任务
|
boolean |
RuntimeServiceImpl.timeout(Long instanceId,
FlowCreator flowCreator) |
boolean |
TaskServiceImpl.transferTask(FlowCreator flowCreator,
FlowCreator assigneeFlowCreator) |
protected Optional<FlwTask> |
TaskServiceImpl.undoHisTask(Long hisTaskId,
FlowCreator flowCreator,
TaskType taskType,
Consumer<FlwHisTask> hisTaskConsumer)
撤回历史任务
|
void |
TaskServiceImpl.updateTaskById(FlwTask flwTask,
FlowCreator flowCreator)
更新任务对象的 finishTime、createBy、expireTime、version、variable
|
Optional<FlwTask> |
TaskServiceImpl.withdrawTask(Long taskId,
FlowCreator flowCreator)
撤回指定的任务
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
TaskServiceImpl.assigneeTask(Long taskId,
TaskType taskType,
FlowCreator flowCreator,
List<FlowCreator> assigneeFlowCreators,
Function<FlwTask,Boolean> check)
根据 任务ID 分配任务给指定办理人、重置任务类型
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
FlowListener.notify(E eventType,
Supplier<T> supplier,
NodeModel nodeModel,
FlowCreator flowCreator)
流程引擎监听通知
|
限定符和类型 | 方法和说明 |
---|---|
static NodeAssignee |
NodeAssignee.ofFlowCreator(FlowCreator flowCreator) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
EventInstanceListener.notify(InstanceEventType eventType,
Supplier<FlwHisInstance> supplier,
NodeModel nodeModel,
FlowCreator flowCreator) |
boolean |
EventTaskListener.notify(TaskEventType eventType,
Supplier<FlwTask> supplier,
NodeModel nodeModel,
FlowCreator flowCreator) |
Copyright © 2025. All rights reserved.