Package org.dromara.warm.flow.orm.entity
Class FlowInstance
java.lang.Object
org.dromara.warm.flow.orm.entity.JPARootEntity<FlowInstance>
org.dromara.warm.flow.orm.entity.FlowInstance
- All Implemented Interfaces:
Serializable,org.dromara.warm.flow.core.entity.Instance,org.dromara.warm.flow.core.entity.RootEntity
@Entity
public class FlowInstance
extends JPARootEntity<FlowInstance>
implements org.dromara.warm.flow.core.entity.Instance
流程实例对象 flow_instance
- Since:
- 2024-05-08
- Author:
- vanlin
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integer流程激活状态(0挂起 1激活)private String业务idprivate String创建者private Long对应flow_definition表的idprivate String流程定义jsonprivate JPAUpdateMergeFunction<FlowInstance>private JPAPredicateFunction<javax.persistence.criteria.CriteriaBuilder,javax.persistence.criteria.Root<FlowInstance>, List<javax.persistence.criteria.Predicate>> private String扩展字段,预留给业务系统使用private String流程名称private String流程状态(0待提交 1审批中 2 审批通过 3自动通过 4终止 5作废 6撤销 7取回 8已完成 9已退回 10失效)private String审批表单是否自定义(Y是 2否)private String审批表单是否自定义(Y是 2否)private String流程节点编码 每个流程的nodeCode是唯一的,即definitionId+nodeCode唯一,在数据库层面做了控制private String流程节点名称private Integer节点类型(0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关)private String流程变量Fields inherited from class org.dromara.warm.flow.orm.entity.JPARootEntity
JPA_ROOT_ENTITY_MAPPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJPAPredicateFunction<javax.persistence.criteria.CriteriaBuilder,javax.persistence.criteria.Root<FlowInstance>, List<javax.persistence.criteria.Predicate>> voidorderByField(String orderByColumn) Methods inherited from class org.dromara.warm.flow.orm.entity.JPARootEntity
commonPredicate, getCreateTime, getDelFlag, getId, getTenantId, getUpdateTime, setCreateTime, setDelFlag, setId, setTenantId, setUpdateTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dromara.warm.flow.core.entity.Instance
getActivityStatus, getBusinessId, getCreateBy, getCreateTime, getDefinitionId, getDefJson, getDelFlag, getExt, getFlowName, getFlowStatus, getFormCustom, getFormPath, getId, getNodeCode, getNodeName, getNodeType, getTenantId, getUpdateTime, getVariable, getVariableMap, setActivityStatus, setBusinessId, setCreateBy, setCreateTime, setDefinitionId, setDefJson, setDelFlag, setExt, setFlowName, setFlowStatus, setFormCustom, setFormPath, setId, setNodeCode, setNodeName, setNodeType, setTenantId, setUpdateTime, setVariable
-
Field Details
-
MAPPING
-
entityPredicate
private JPAPredicateFunction<javax.persistence.criteria.CriteriaBuilder,javax.persistence.criteria.Root<FlowInstance>, entityPredicateList<javax.persistence.criteria.Predicate>> -
entityMerge
-
definitionId
对应flow_definition表的id -
flowName
流程名称 -
businessId
业务id -
nodeType
节点类型(0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关) -
nodeCode
流程节点编码 每个流程的nodeCode是唯一的,即definitionId+nodeCode唯一,在数据库层面做了控制 -
nodeName
流程节点名称 -
variable
流程变量 -
flowStatus
流程状态(0待提交 1审批中 2 审批通过 3自动通过 4终止 5作废 6撤销 7取回 8已完成 9已退回 10失效) -
activityStatus
流程激活状态(0挂起 1激活) -
createBy
创建者 -
formCustom
审批表单是否自定义(Y是 2否) -
formPath
审批表单是否自定义(Y是 2否) -
defJson
流程定义json -
ext
扩展字段,预留给业务系统使用
-
-
Constructor Details
-
FlowInstance
public FlowInstance()
-
-
Method Details
-
entityPredicate
public JPAPredicateFunction<javax.persistence.criteria.CriteriaBuilder,javax.persistence.criteria.Root<FlowInstance>, entityPredicate()List<javax.persistence.criteria.Predicate>> - Specified by:
entityPredicatein classJPARootEntity<FlowInstance>
-
entityMerge
- Specified by:
entityMergein classJPARootEntity<FlowInstance>
-
orderByField
- Specified by:
orderByFieldin classJPARootEntity<FlowInstance>
-
initDefaultValue
public void initDefaultValue()- Specified by:
initDefaultValuein classJPARootEntity<FlowInstance>
-