Package com.codingapi.flow.node
Class BaseAuditNode
java.lang.Object
com.codingapi.flow.node.BaseFlowNode
com.codingapi.flow.node.BaseAuditNode
- All Implemented Interfaces:
IMapConvertor,IFlowNode
- Direct Known Subclasses:
ApprovalNode,HandleNode,NotifyNode
-
Field Summary
FieldsFields inherited from class com.codingapi.flow.node.BaseFlowNode
actions, id, name, order, strategies -
Constructor Summary
ConstructorsConstructorDescriptionBaseAuditNode(String id, String name, String view, List<IFlowAction> actions, List<INodeStrategy> nodeStrategies) -
Method Summary
Modifier and TypeMethodDescriptionvoidfillNewRecord(FlowSession session, FlowRecord flowRecord) 填充流程记录,在保存流程记录时将会触发当前节点的填充流程记录函数。static <T extends BaseAuditNode>
TgenerateCurrentRecords(FlowSession session) 生成当前节点的记录booleanhandle(FlowSession session) 是否执行节点 当前流程节点执行完成以后,触发下一环节时执行的函数,当返回true时则将继续执行后续节点的handle流程,当返回false时则不继续执行后续流程,将执行当前节点的创建流程记录函数IFlowNode.generateCurrentRecords(FlowSession)booleanisDone(FlowSession session) 节点是否完成toMap()voidverifyNode(FormMeta form) 节点验证 用于流程配置完成以后的验证时触发Methods inherited from class com.codingapi.flow.node.BaseFlowNode
actionManager, equals, filterBranches, fromMap, isWaitRecordMargeParallelNode, setActions, setStrategies, strategyManager, verifySessionMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.codingapi.flow.node.IFlowNode
actionManager, filterBranches, getId, getName, getOrder, getType, strategyManager, verifySession
-
Field Details
-
DEFAULT_VIEW
- See Also:
-
-
Constructor Details
-
BaseAuditNode
public BaseAuditNode(String id, String name, String view, List<IFlowAction> actions, List<INodeStrategy> nodeStrategies)
-
-
Method Details
-
toMap
- Specified by:
toMapin interfaceIMapConvertor- Overrides:
toMapin classBaseFlowNode
-
verifyNode
Description copied from interface:IFlowNode节点验证 用于流程配置完成以后的验证时触发- Specified by:
verifyNodein interfaceIFlowNode- Overrides:
verifyNodein classBaseFlowNode
-
handle
Description copied from interface:IFlowNode是否执行节点 当前流程节点执行完成以后,触发下一环节时执行的函数,当返回true时则将继续执行后续节点的handle流程,当返回false时则不继续执行后续流程,将执行当前节点的创建流程记录函数IFlowNode.generateCurrentRecords(FlowSession)- Specified by:
handlein interfaceIFlowNode- Overrides:
handlein classBaseFlowNode- Parameters:
session- 会话- Returns:
- true: 继续执行下一个节点
-
fillNewRecord
Description copied from interface:IFlowNode填充流程记录,在保存流程记录时将会触发当前节点的填充流程记录函数。由于不同节点存储的流程数据会存在差异。- Specified by:
fillNewRecordin interfaceIFlowNode- Overrides:
fillNewRecordin classBaseFlowNode- Parameters:
session- 会话flowRecord- 流程记录
-
isDone
Description copied from interface:IFlowNode节点是否完成- Specified by:
isDonein interfaceIFlowNode- Overrides:
isDonein classBaseFlowNode- Parameters:
session- 会话- Returns:
- true: 节点完成
-
generateCurrentRecords
生成当前节点的记录- Specified by:
generateCurrentRecordsin interfaceIFlowNode- Overrides:
generateCurrentRecordsin classBaseFlowNode- Parameters:
session- 触发会话- Returns:
- 生成当前节点的记录
-
formMap
-