Package com.aizuda.bpm.engine.model
Class NodeModel
- java.lang.Object
-
- com.aizuda.bpm.engine.model.NodeModel
-
- All Implemented Interfaces:
ModelInstance,java.io.Serializable
public class NodeModel extends java.lang.Object implements ModelInstance, java.io.Serializable
JSON BPM 节点官网尊重知识产权,不允许非法使用,后果自负
- Since:
- 1.0
- Author:
- hubin
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallJoinGroupStrategy()判断是否为全部人员参与审批分组策略booleanapprovalOrMajor()判断是否为审批或主办节点booleancallAsync()是否异步调用booleancallProcessNode()判断是否为调用子流程节点booleanccNode()判断是否为抄送节点NodeModelcloneBaseInfo()克隆基本信息booleanconditionNode()判断是否为条件节点booleanendNode()判断是否为结束节点booleanexecute(FlowLongContext flowLongContext, Execution execution)执行节点voidexecuteConditionNode(FlowLongContext flowLongContext, Execution execution, ConditionNode conditionNode)执行条件节点分支booleanexecuteTrigger(Execution execution, java.util.function.Supplier<java.lang.Boolean> supplier, java.util.function.Function<Execution,java.lang.Boolean> callAsync)执行触发器NodeModelgetNode(java.lang.String nodeKey)获取process定义的指定节点key的节点模型booleaninclusiveNode()判断是否为包容节点java.util.Optional<NodeModel>nextNode()下一个执行节点java.util.Optional<NodeModel>nextNode(java.util.List<java.lang.String> currentTask)下一个执行节点NodeAssigneenextNodeAssignee(Execution execution, java.lang.String assigneeId)booleanparallelNode()判断是否为并行节点NodeModelparentApprovalNode()获取父审批节点java.util.List<java.lang.String>parentConditionNodeKeys()获取所有父节点条件节点子节点key列表booleanrouteNode()判断是否为路由节点
-
-
-
Method Detail
-
execute
public boolean execute(FlowLongContext flowLongContext, Execution execution)
执行节点- Specified by:
executein interfaceModelInstance- Parameters:
flowLongContext- 流程引擎上下文execution- 执行对象- Returns:
- 执行结果 true 成功 false 失败
-
executeConditionNode
public void executeConditionNode(FlowLongContext flowLongContext, Execution execution, ConditionNode conditionNode)
执行条件节点分支- Parameters:
flowLongContext-FlowLongContextexecution-ExecutionconditionNode-ConditionNode
-
getNode
public NodeModel getNode(java.lang.String nodeKey)
获取process定义的指定节点key的节点模型- Parameters:
nodeKey- 节点key- Returns:
- 模型节点
-
nextNode
public java.util.Optional<NodeModel> nextNode()
下一个执行节点- Returns:
- 模型节点
-
nextNode
public java.util.Optional<NodeModel> nextNode(java.util.List<java.lang.String> currentTask)
下一个执行节点- Parameters:
currentTask- 当前任务- Returns:
- 模型节点
-
callAsync
public boolean callAsync()
是否异步调用
-
parentApprovalNode
public NodeModel parentApprovalNode()
获取父审批节点- Returns:
- 模型节点
-
approvalOrMajor
public boolean approvalOrMajor()
判断是否为审批或主办节点- Returns:
- true 是 false 否
-
conditionNode
public boolean conditionNode()
判断是否为条件节点- Returns:
- true 是 false 否
-
ccNode
public boolean ccNode()
判断是否为抄送节点- Returns:
- true 是 false 否
-
parallelNode
public boolean parallelNode()
判断是否为并行节点- Returns:
- true 是 false 否
-
inclusiveNode
public boolean inclusiveNode()
判断是否为包容节点- Returns:
- true 是 false 否
-
routeNode
public boolean routeNode()
判断是否为路由节点- Returns:
- true 是 false 否
-
allJoinGroupStrategy
public boolean allJoinGroupStrategy()
判断是否为全部人员参与审批分组策略- Returns:
- true 是 false 否
-
callProcessNode
public boolean callProcessNode()
判断是否为调用子流程节点- Returns:
- true 是 false 否
-
endNode
public boolean endNode()
判断是否为结束节点- Returns:
- true 是 false 否
-
nextNodeAssignee
public NodeAssignee nextNodeAssignee(Execution execution, java.lang.String assigneeId)
-
parentConditionNodeKeys
public java.util.List<java.lang.String> parentConditionNodeKeys()
获取所有父节点条件节点子节点key列表
-
executeTrigger
public boolean executeTrigger(Execution execution, java.util.function.Supplier<java.lang.Boolean> supplier, java.util.function.Function<Execution,java.lang.Boolean> callAsync)
执行触发器- Parameters:
execution-Executionsupplier- 执行默认触发器执行函数
-
cloneBaseInfo
public NodeModel cloneBaseInfo()
克隆基本信息不包含节点信息内容,避免循环递归序列化异常
- Returns:
- 节点模型
-
-