public interface ProcessService
限定符和类型 | 方法和说明 |
---|---|
void |
cascadeRemove(Long id)
谨慎使用!!!
|
default Long |
deploy(InputStream input,
FlowCreator flowCreator,
boolean repeat)
根据InputStream输入流,部署流程定义
|
default Long |
deploy(InputStream input,
FlowCreator flowCreator,
boolean repeat,
Consumer<FlwProcess> processSave)
根据InputStream输入流,部署流程定义
|
Long |
deploy(Long processId,
String jsonString,
FlowCreator flowCreator,
boolean repeat,
Consumer<FlwProcess> processSave)
根据 流程定义jsonString 部署流程定义
|
default Long |
deployByResource(String resourceName,
FlowCreator flowCreator,
boolean repeat)
根据本地 resource 资源名称部署流程
|
default Long |
deployByResource(String resourceName,
FlowCreator flowCreator,
boolean repeat,
Consumer<FlwProcess> processSave)
根据本地 resource 资源名称部署流程
|
FlwProcess |
getProcessById(Long id)
根据主键ID获取流程定义对象
|
default FlwProcess |
getProcessByKey(String tenantId,
String processKey)
根据流程定义KEY查找流程定义对象
|
FlwProcess |
getProcessByVersion(String tenantId,
String processKey,
Integer version)
根据流程定义KEY或版本号查找流程定义对象
|
boolean |
undeploy(Long id)
卸载指定的定义流程,更新为未启用状态
|
void |
updateType(Long id,
String type)
更新流程定义的类别
|
FlwProcess getProcessById(Long id)
id
- 流程定义idFlwProcess getProcessByVersion(String tenantId, String processKey, Integer version)
tenantId
- 租户IDprocessKey
- 流程定义keyversion
- 版本号FlwProcess
default FlwProcess getProcessByKey(String tenantId, String processKey)
tenantId
- 租户IDprocessKey
- 流程定义keyFlwProcess
default Long deployByResource(String resourceName, FlowCreator flowCreator, boolean repeat)
resourceName
- 资源名称flowCreator
- 流程任务部署者repeat
- 是否重复部署 true 存在版本+1新增一条记录 false 存在流程直接返回default Long deployByResource(String resourceName, FlowCreator flowCreator, boolean repeat, Consumer<FlwProcess> processSave)
resourceName
- 资源名称flowCreator
- 流程任务部署者repeat
- 是否重复部署 true 存在版本+1新增一条记录 false 存在流程直接返回processSave
- 保存流程定义消费者函数default Long deploy(InputStream input, FlowCreator flowCreator, boolean repeat)
input
- 流程定义输入流flowCreator
- 流程任务部署者repeat
- 是否重复部署 true 存在版本+1新增一条记录 false 存在流程直接返回default Long deploy(InputStream input, FlowCreator flowCreator, boolean repeat, Consumer<FlwProcess> processSave)
input
- 流程定义输入流flowCreator
- 流程任务部署者repeat
- 是否重复部署 true 存在版本+1新增一条记录 false 存在流程直接返回processSave
- 保存流程定义消费者函数Long deploy(Long processId, String jsonString, FlowCreator flowCreator, boolean repeat, Consumer<FlwProcess> processSave)
processId
- 流程定义IDjsonString
- 流程定义json字符串flowCreator
- 流程任务部署者repeat
- 是否重复部署 true 存在版本+1新增一条记录 false 存在流程直接返回processSave
- 保存流程定义消费者函数boolean undeploy(Long id)
id
- 流程定义IDvoid cascadeRemove(Long id)
id
- 流程定义IDCopyright © 2025. All rights reserved.