Class WorkflowValidator

java.lang.Object
com.axelor.workflow.compiler.WorkflowValidator

public final class WorkflowValidator extends Object
Semantic validation of a parsed Workflow, beyond the XSD and the compiler's structure: models exist, triggers are coherent, watch covers when, expressions parse, and the graph terminates. validateAll(com.axelor.meta.schema.workflows.Workflow) returns the full list; validate(com.axelor.meta.schema.workflows.Workflow) throws.
  • Method Details

    • validate

      public static void validate(Workflow workflow)
      Validate, throwing every violation as one message.
    • validateAll

      public static List<Violation> validateAll(Workflow workflow)
      Every violation, empty when valid. Never throws.