Interface ConfirmationPredicate<I>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Experimental @FunctionalInterface public interface ConfirmationPredicate<I>
A predicate that decides for each input whether a FunctionNode run asks the user to approve it, set with FunctionNode.Builder.requireConfirmation(ConfirmationPredicate). It runs on the body's thread before the body, so canceling the node interrupts it. An exception it throws fails the run.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(Context context, @Nullable I input)
    Returns whether this run asks the user to approve it before the body runs.
  • Method Details

    • test

      boolean test(Context context, @Nullable I input) throws Exception
      Returns whether this run asks the user to approve it before the body runs. input is null when the predecessor sent no output or the port is Void.
      Throws:
      Exception