scripting/src/main/java/com/tersesystems/echopraxia/scripting/ScriptCondition.java
/**
   * Creates a condition from a script on the filesystem.
   *
   * @param defaultValue the value to return if there's an exception in the flow.
   * @param path the script path
   * @param reporter the reporter of any exceptions in the condition
   * @return the condition backed by script.
   */
Creates a condition from a script on the filesystem.
@param defaultValue the value to return if there's an exception in the flow.
@param path the script path
@param reporter the reporter of any exceptions in the condition
@return the condition backed by script.
Creates a condition from a script on the filesystem . @param defaultValue the value to return if there ' s an exception in the flow . @param path the script path @param reporter the reporter of any exceptions in the condition @return the condition backed by script .
public static Condition create(boolean defaultValue, Path path, Consumer<Throwable> reporter) {
    if (Files.isDirectory(path)) {
      throw new IllegalArgumentException("Path is a directory: " + path);
    }
    ScriptHandle handle = new FileScriptHandle(path, reporter);
    return create(defaultValue, handle);
  }
public static Condition create ( boolean defaultValue , Path path , Consumer < Throwable > reporter ) { if ( Files . isDirectory ( path ) ) { throw new IllegalArgumentException ( "Path is a directory: " + path ) ; } ScriptHandle handle = new FileScriptHandle ( path , reporter ) ; return create ( defaultValue , handle ) ; }
Creates a condition from a script on the filesystem.
Creates a condition from a script on the filesystem .