code: public static void failEverything(final ExecutableFlow exFlow) {
      final long time = System.currentTimeMillis();
      for (final ExecutableNode node : exFlow.getExecutableNodes()) {
        switch (node.getStatus()) {
          case SUCCEEDED:
          case FAILED:
          case KILLED:
          case SKIPPED:
          case DISABLED:
            continue;
            // case UNKNOWN:
          case READY:
            node.setStatus(Status.KILLING);
            break;
          default:
            node.setStatus(Status.FAILED);
            break;
        }
  
        if (node.getStartTime() == -1) {
          node.setStartTime(time);
        }
        if (node.getEndTime() == -1) {
          node.setEndTime(time);
        }
      }
  
      if (exFlow.getEndTime() == -1) {
        exFlow.setEndTime(time);
      }
  
      exFlow.setStatus(Status.FAILED);
    }
docs: Set the flow status to failed and fail every node inside the flow.
  
  @param exFlow the executable flow