public class FlwProcess extends FlowEntity implements ProcessModelCache
限定符和类型 | 字段和说明 |
---|---|
protected String |
instanceUrl
当前流程的实例url(一般为流程第一步的url)
该字段可以直接打开流程申请的表单
|
protected String |
modelContent
流程模型定义JSON内容
|
protected String |
processIcon
流程图标地址
|
protected String |
processKey
流程定义 key 唯一标识
|
protected String |
processName
流程定义名称
|
protected Integer |
processState
流程状态 0,不可用 1,可用 2,历史版本
|
protected String |
processType
流程定义类型(预留字段)
|
protected Integer |
processVersion
流程版本
|
protected String |
remark
备注说明
|
protected Integer |
sort
排序
|
protected Integer |
useScope
使用范围 0,全员 1,指定人员(业务关联) 2,均不可提交
|
createBy, createId, createTime, id, tenantId
构造器和说明 |
---|
FlwProcess() |
限定符和类型 | 方法和说明 |
---|---|
FlwProcess |
checkState()
流程状态验证
|
Optional<FlwInstance> |
executeStartModel(FlowContext flowLongContext,
FlowCreator flowCreator,
Function<NodeModel,Execution> function)
执行开始模型
|
FlwProcess |
formatModelContent(String modelContent)
格式化 JSON 模型内容
|
String |
modelCacheKey()
流程模型缓存KEY
|
int |
nextProcessVersion()
下一个流程版本
|
static FlwProcess |
of(FlowCreator flowCreator,
ProcessModel processModel,
int processVersion,
String jsonString) |
void |
setFlowState(FlowState flowState) |
FlwProcess |
setModelContent2Json(ProcessModel processModel)
设置 JSON 模型内容
|
setFlowCreator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModelContent, model, model
protected String processKey
protected String processName
protected String processIcon
protected String processType
protected Integer processVersion
protected String instanceUrl
protected String remark
protected Integer useScope
protected Integer processState
protected String modelContent
protected Integer sort
public void setFlowState(FlowState flowState)
public String modelCacheKey()
ProcessModelCache
modelCacheKey
在接口中 ProcessModelCache
public static FlwProcess of(FlowCreator flowCreator, ProcessModel processModel, int processVersion, String jsonString)
public Optional<FlwInstance> executeStartModel(FlowContext flowLongContext, FlowCreator flowCreator, Function<NodeModel,Execution> function)
flowLongContext
- 流程引擎上下文flowCreator
- 流程实例任务创建者function
- 流程执行对象处理函数public FlwProcess checkState()
public FlwProcess formatModelContent(String modelContent)
modelContent
- JSON 模型内容public FlwProcess setModelContent2Json(ProcessModel processModel)
processModel
- 模型内容public int nextProcessVersion()
Copyright © 2025. All rights reserved.