Interface IWorkflowElementValidationResult

  • All Superinterfaces:
    Serializable

    public interface IWorkflowElementValidationResult
    extends Serializable
    Represents the result of validating a single workflow node or trigger.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.common.collect.ImmutableList<Throwable> getExceptions()
      Gets a list of unexpected exception that occurred during validation that may be responsible for the element being invalid.
      com.google.common.collect.ImmutableList<IWorkflowValidationMessage> getMessages()
      Gets a list of validation messages for the node or trigger.
      boolean isValid()
      Gets whether the validates workflow element is valid or invalid.
    • Method Detail

      • getExceptions

        com.google.common.collect.ImmutableList<Throwable> getExceptions()
        Gets a list of unexpected exception that occurred during validation that may be responsible for the element being invalid.
        Returns:
        A list of exceptions that occurred during validation.
      • getMessages

        com.google.common.collect.ImmutableList<IWorkflowValidationMessage> getMessages()
        Gets a list of validation messages for the node or trigger. An error usually represents a critical constraint violations, while warnings are only informational. It is however, possible and allowed (albeit not encouraged), for isValid() to return true even if there are error messages.The contrary holds true as well: isValid() may return false even when there are no messages.
        Returns:
        A list of validation messages for the node or trigger.
      • isValid

        boolean isValid()
        Gets whether the validates workflow element is valid or invalid. Please note that it is possible and allowed (albeit not encouraged) for isValid to return true even if there are error messages. The contrary holds true as well: isValid may return false even when there are no messages.
        Returns:
        true if the validated workflow element is valid, false otherwise.