Class WorkflowConditionInterpreter

java.lang.Object
org.opencastproject.workflow.conditionparser.WorkflowConditionInterpreter

public final class WorkflowConditionInterpreter extends Object
  • Method Details

    • replaceVariables

      public static String replaceVariables(String source, Function<String,String> systemPropertyGetter, Map<String,String> properties, boolean quoteStrings)
      Replaces all occurrences of ${.*+} with the property in the provided map, or if not available in the map, from the bundle context properties, if available.
      Parameters:
      source - The source string
      properties - The map of properties to replace
      Returns:
      The resulting string
    • interpret

      public static boolean interpret(String input) throws IllegalArgumentException
      Throws:
      IllegalArgumentException