类 FlwProcess
java.lang.Object
net.sohelp.boot.engine.workflow.entity.FlowEntity
net.sohelp.boot.engine.workflow.entity.FlwProcess
- 所有已实现的接口:
Serializable,ProcessModelCache
@TableName("pb_flw_process")
public class FlwProcess
extends FlowEntity
implements ProcessModelCache
流程定义实体类
- 从以下版本开始:
- 1.0
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明protected String当前流程的实例url(一般为流程第一步的url) 该字段可以直接打开流程申请的表单protected String流程模型定义JSON内容protected String流程图标地址protected String流程定义 key 唯一标识protected String流程定义名称protected Integer流程状态 0,不可用 1,可用 2,历史版本protected String流程定义类型(预留字段)protected Integer流程版本protected String备注说明protected Integer排序protected Integer使用范围 0,全员 1,指定人员(业务关联) 2,均不可提交从类继承的字段 net.sohelp.boot.engine.workflow.entity.FlowEntity
createBy, createId, createTime, id, tenantId -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明流程状态验证executeStartModel(FlowContext flowLongContext, FlowCreator flowCreator, boolean saveAsDraft, Function<NodeModel, Execution> function) 执行开始模型formatModelContent(String modelContent) 格式化 JSON 模型内容流程模型缓存KEYint下一个流程版本static FlwProcessof(FlowCreator flowCreator, ProcessModel processModel, int processVersion, String jsonString) voidsetFlowState(FlowState flowState) setModelContent2Json(ProcessModel processModel) 设置 JSON 模型内容从类继承的方法 net.sohelp.boot.engine.workflow.entity.FlowEntity
setFlowCreator从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 net.sohelp.boot.engine.workflow.ProcessModelCache
getModelContent, model, model
-
字段详细资料
-
processKey
流程定义 key 唯一标识 -
processName
流程定义名称 -
processIcon
流程图标地址 -
processType
流程定义类型(预留字段) -
processVersion
流程版本 -
instanceUrl
当前流程的实例url(一般为流程第一步的url) 该字段可以直接打开流程申请的表单 -
remark
备注说明 -
useScope
使用范围 0,全员 1,指定人员(业务关联) 2,均不可提交 -
processState
流程状态 0,不可用 1,可用 2,历史版本 -
modelContent
流程模型定义JSON内容 -
sort
排序
-
-
构造器详细资料
-
FlwProcess
public FlwProcess()
-
-
方法详细资料
-
setFlowState
-
modelCacheKey
从接口复制的说明:ProcessModelCache流程模型缓存KEY- 指定者:
modelCacheKey在接口中ProcessModelCache- 返回:
- 缓存 KEY
-
of
public static FlwProcess of(FlowCreator flowCreator, ProcessModel processModel, int processVersion, String jsonString) -
executeStartModel
public Optional<FlwInstance> executeStartModel(FlowContext flowLongContext, FlowCreator flowCreator, boolean saveAsDraft, Function<NodeModel, Execution> function) 执行开始模型- 参数:
flowLongContext- 流程引擎上下文flowCreator- 流程实例任务创建者saveAsDraft- 暂存草稿function- 流程执行对象处理函数- 返回:
- 流程实例
-
checkState
流程状态验证- 返回:
- 流程定义实体
-
formatModelContent
格式化 JSON 模型内容- 参数:
modelContent- JSON 模型内容- 返回:
- 流程定义实体
-
setModelContent2Json
设置 JSON 模型内容- 参数:
processModel- 模型内容- 返回:
- 流程定义实体
-
nextProcessVersion
public int nextProcessVersion()下一个流程版本- 返回:
- 下一个流程版本
-