Interface NESTSequentialWorkflowValidator
- All Superinterfaces:
NESTGraphValidator
- All Known Implementing Classes:
NESTSequentialWorkflowValidatorImpl
To check if a
NESTSequentialWorkflowObject
is a valid nest sequential workflow, this
class can be used. The validator provides several methods for performing fine-grained
validations.- Author:
- Alexander Schultheis
-
Method Summary
Modifier and TypeMethodDescriptiongetGraph()
This method returns the nest sequential object for which the validator was created.boolean
This method checks if all data nodes in the sequential workflow are valid.boolean
This method verifies that the sequential workflow has only one end node and that it is a task node.boolean
This method checks that the sequential workflow contains only task and data nodes and one workflow node.boolean
This method verifies that the sequential workflow is a valid sequence.boolean
This method verifies that the sequential workflow has only one start node and that it is a task node.boolean
This method checks whether the workflow is a valid nest sequential workflow.Methods inherited from interface de.uni_trier.wi2.procake.data.object.nest.utils.NESTGraphValidator
getErrorMessage, hasFullyConnectedAndNoDuplicateEdges, hasUniqueEdgeIDs, hasUniqueNodeIDs, hasValidSemanticDescriptors, isValidGraph, reset
-
Method Details
-
isValidSequentialWorkflow
boolean isValidSequentialWorkflow()This method checks whether the workflow is a valid nest sequential workflow. It checks if it is a valid graph, if it has a valid start and end node, if the node types and the sequence as well as the data nodes are correct. See methodsNESTGraphValidator.isValidGraph()
,hasValidStartNode()
,hasValidEndNode()
,hasValidNodeTypes()
,hasValidSequence()
andhasValidDataNodes()
.- Returns:
- True, if sequential workflow is valid.
-
hasValidStartNode
boolean hasValidStartNode()This method verifies that the sequential workflow has only one start node and that it is a task node.- Returns:
- True, if start node is valid.
-
hasValidEndNode
boolean hasValidEndNode()This method verifies that the sequential workflow has only one end node and that it is a task node.- Returns:
- True, if end node is valid.
-
hasValidNodeTypes
boolean hasValidNodeTypes()This method checks that the sequential workflow contains only task and data nodes and one workflow node.- Returns:
- True, if all node types are valid.
-
hasValidSequence
boolean hasValidSequence()This method verifies that the sequential workflow is a valid sequence. This means that each task node may have only one following task node and all task nodes must be between start and end nodes.- Returns:
- True, if sequence is valid.
-
hasValidDataNodes
boolean hasValidDataNodes()This method checks if all data nodes in the sequential workflow are valid. This is the case if all data nodes are connected to task nodes.- Returns:
- True, if all data nodes are valid.
-
getGraph
NESTAbstractWorkflowObject getGraph()This method returns the nest sequential object for which the validator was created.- Specified by:
getGraph
in interfaceNESTGraphValidator
- Returns:
- The nest sequential workflow object for which the validator was created.
-