Class NextNode


  • public class NextNode
    extends Object
    • Method Detail

      • ofOrThrow

        public static ExecutionNode ofOrThrow​(ExecutionNode current,
                                              ExecutionGraph graph)
        Returns the successor node of the current node and it throws an exception if a node was not found.
        Parameters:
        current - the current node for which we want to get the successor.
        graph - the execution graph the current node belongs to.
        Returns:
        the following execution node of the current node.
        Throws:
        IllegalStateException - if the next node is not present.