Interface NESTSequentialWorkflowValidator

All Superinterfaces:
NESTGraphValidator
All Known Implementing Classes:
NESTSequentialWorkflowValidatorImpl

public interface NESTSequentialWorkflowValidator extends NESTGraphValidator
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 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 methods NESTGraphValidator.isValidGraph(), hasValidStartNode(), hasValidEndNode(), hasValidNodeTypes(), hasValidSequence() and hasValidDataNodes().
      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

      This method returns the nest sequential object for which the validator was created.
      Specified by:
      getGraph in interface NESTGraphValidator
      Returns:
      The nest sequential workflow object for which the validator was created.