Interface IWorkflowElementValidationResult
- All Superinterfaces:
Serializable
Represents the result of validating a single workflow node or trigger.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<Throwable> 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> Gets a list of validation messages for the node or trigger.booleanisValid()Gets whether the validates workflow element is valid or invalid.
-
Method Details
-
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), forisValid()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) forisValidto return true even if there are error messages. The contrary holds true as well:isValidmay return false even when there are no messages.- Returns:
- true if the validated workflow element is valid, false otherwise.
-