Interface Validatable

All Known Subinterfaces:
Capability, Condition, ConditionalResult, Conditions, DefaultResult, Fork, Function, Join, Model<SELF,ID>, MutableWorkflowDefinition, Register, Result<E>, State, Transition, Validator, WorkflowDefinition

public interface Validatable
Interface for objects that can be validated. Validatable provides the contract for performing validation on workflow model elements and returning a list of validation errors if any issues are found.

Validation is a crucial part of the workflow model system, ensuring that all workflow definitions are structurally correct and can be safely executed. All workflow model elements implement this interface to provide validation capabilities.

The validation process checks for structural integrity, required fields, valid references, and business rule compliance. If validation fails, a list of ValidationError objects is returned describing what needs to be fixed.

Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Validates this object and returns a list of validation errors.
  • Method Details

    • validate

      List<ValidationError> validate()
      Validates this object and returns a list of validation errors. If the object is valid, an empty list is returned.
      Returns:
      a list of validation errors, or an empty list if validation passes