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 模型内容 | 
setFlowCreatorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModelContent, model, modelprotected 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()
ProcessModelCachemodelCacheKey 在接口中 ProcessModelCachepublic 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.