Class SubmitRuleEvaluator


  • public class SubmitRuleEvaluator
    extends Object
    Evaluates a submit-like Prolog rule found in the rules.pl file of the current project and filters the results through rules found in the parent projects, all the way up to All-Projects.
    • Method Detail

      • defaultRuleError

        public static SubmitRecord defaultRuleError()
      • evaluate

        public List<SubmitRecord> evaluate​(ChangeData cd)
        Evaluate the submit rules.
        Parameters:
        cd - ChangeData to evaluate
        Returns:
        List of SubmitRecord objects returned from the evaluated rules, including any errors.
      • getSubmitType

        public SubmitTypeRecord getSubmitType​(ChangeData cd)
        Evaluate the submit type rules to get the submit type.
        Parameters:
        cd -
        Returns:
        record from the evaluated rules.