Package com.aizuda.bpm.engine.entity
Class FlwProcess
- java.lang.Object
-
- com.aizuda.bpm.engine.entity.FlowEntity
-
- com.aizuda.bpm.engine.entity.FlwProcess
-
- All Implemented Interfaces:
ProcessModelCache,java.io.Serializable
public class FlwProcess extends FlowEntity implements ProcessModelCache
流程定义实体类官网尊重知识产权,不允许非法使用,后果自负
- Since:
- 1.0
- Author:
- hubin
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringinstanceUrl当前流程的实例url(一般为流程第一步的url) 该字段可以直接打开流程申请的表单protected java.lang.StringmodelContent流程模型定义JSON内容protected java.lang.StringprocessIcon流程图标地址protected java.lang.StringprocessKey流程定义 key 唯一标识protected java.lang.StringprocessName流程定义名称protected java.lang.IntegerprocessState流程状态 0,不可用 1,可用 2,历史版本protected java.lang.StringprocessType流程定义类型(预留字段)protected java.lang.IntegerprocessVersion流程版本protected java.lang.Stringremark备注说明protected java.lang.Integersort排序protected java.lang.IntegeruseScope使用范围 0,全员 1,指定人员(业务关联) 2,均不可提交-
Fields inherited from class com.aizuda.bpm.engine.entity.FlowEntity
createBy, createId, createTime, id, tenantId
-
-
Constructor Summary
Constructors Constructor Description FlwProcess()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FlwProcesscheckState()流程状态验证java.util.Optional<FlwInstance>executeStartModel(FlowLongContext flowLongContext, FlowCreator flowCreator, boolean saveAsDraft, java.util.function.Function<NodeModel,Execution> function)执行开始模型FlwProcessformatModelContent(java.lang.String modelContent)格式化 JSON 模型内容java.lang.StringmodelCacheKey()流程模型缓存KEYintnextProcessVersion()下一个流程版本static FlwProcessof(FlowCreator flowCreator, ProcessModel processModel, int processVersion, java.lang.String jsonString)voidsetFlowState(FlowState flowState)FlwProcesssetModelContent2Json(ProcessModel processModel)设置 JSON 模型内容-
Methods inherited from class com.aizuda.bpm.engine.entity.FlowEntity
setFlowCreator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aizuda.bpm.engine.ProcessModelCache
getModelContent, model, model
-
-
-
-
Field Detail
-
processKey
protected java.lang.String processKey
流程定义 key 唯一标识
-
processName
protected java.lang.String processName
流程定义名称
-
processIcon
protected java.lang.String processIcon
流程图标地址
-
processType
protected java.lang.String processType
流程定义类型(预留字段)
-
processVersion
protected java.lang.Integer processVersion
流程版本
-
instanceUrl
protected java.lang.String instanceUrl
当前流程的实例url(一般为流程第一步的url) 该字段可以直接打开流程申请的表单
-
remark
protected java.lang.String remark
备注说明
-
useScope
protected java.lang.Integer useScope
使用范围 0,全员 1,指定人员(业务关联) 2,均不可提交
-
processState
protected java.lang.Integer processState
流程状态 0,不可用 1,可用 2,历史版本
-
modelContent
protected java.lang.String modelContent
流程模型定义JSON内容
-
sort
protected java.lang.Integer sort
排序
-
-
Method Detail
-
setFlowState
public void setFlowState(FlowState flowState)
-
modelCacheKey
public java.lang.String modelCacheKey()
Description copied from interface:ProcessModelCache流程模型缓存KEY- Specified by:
modelCacheKeyin interfaceProcessModelCache- Returns:
- 缓存 KEY
-
of
public static FlwProcess of(FlowCreator flowCreator, ProcessModel processModel, int processVersion, java.lang.String jsonString)
-
executeStartModel
public java.util.Optional<FlwInstance> executeStartModel(FlowLongContext flowLongContext, FlowCreator flowCreator, boolean saveAsDraft, java.util.function.Function<NodeModel,Execution> function)
执行开始模型- Parameters:
flowLongContext- 流程引擎上下文flowCreator- 流程实例任务创建者saveAsDraft- 暂存草稿function- 流程执行对象处理函数- Returns:
- 流程实例
-
checkState
public FlwProcess checkState()
流程状态验证- Returns:
- 流程定义实体
-
formatModelContent
public FlwProcess formatModelContent(java.lang.String modelContent)
格式化 JSON 模型内容- Parameters:
modelContent- JSON 模型内容- Returns:
- 流程定义实体
-
setModelContent2Json
public FlwProcess setModelContent2Json(ProcessModel processModel)
设置 JSON 模型内容- Parameters:
processModel- 模型内容- Returns:
- 流程定义实体
-
nextProcessVersion
public int nextProcessVersion()
下一个流程版本- Returns:
- 下一个流程版本
-
-