Class WorkflowValidationResult
java.lang.Object
de.xima.fc.workflow.processor.model.WorkflowValidationResult
- All Implemented Interfaces:
IWorkflowValidationResult, Serializable
POJO implementation of a
IWorkflowValidationResult.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowValidationResult(IWorkflowElementValidationResult processValidationResult, Map<UUID, IWorkflowElementValidationResult> taskValidationResults, Map<ElementKey, IWorkflowElementValidationResult> elementValidationResults, List<WorkflowValidationException> unhandledExceptions) Creates a new POJO with the given data. -
Method Summary
Modifier and TypeMethodDescriptionGets the map between the key of a validated workflow element and the validation result for that element.Gets the validation result for the entire process, i.e. validation messages that pertain to the entire process, e.g. that the process must contain at least one task.Get the map between the UUID of a workflow task and the validation result for that task.Gets all unhandled exception that occurred during validation.static IWorkflowValidationResultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IWorkflowValidationResult
isValid
-
Constructor Details
-
WorkflowValidationResult
public WorkflowValidationResult(IWorkflowElementValidationResult processValidationResult, Map<UUID, IWorkflowElementValidationResult> taskValidationResults, Map<ElementKey, IWorkflowElementValidationResult> elementValidationResults, List<WorkflowValidationException> unhandledExceptions) Creates a new POJO with the given data.- Parameters:
processValidationResult- Value returned byIWorkflowValidationResult.getProcessValidationResult()taskValidationResults- Value returned byIWorkflowValidationResult.getTaskValidationResults()elementValidationResults- Value returned byIWorkflowValidationResult.getElementValidationResults()unhandledExceptions- Value returned byIWorkflowValidationResult.getUnhandledExceptions().
-
-
Method Details
-
getElementValidationResults
Description copied from interface:IWorkflowValidationResultGets the map between the key of a validated workflow element and the validation result for that element. If an element does not appear in this map, either an exception was thrown during its validation (seeIWorkflowValidationResult.getUnhandledExceptions()), or the element was not scheduled to be validated.- Specified by:
getElementValidationResultsin interfaceIWorkflowValidationResult- Returns:
- The validation results for each element.
-
getProcessValidationResult
Description copied from interface:IWorkflowValidationResultGets the validation result for the entire process, i.e. validation messages that pertain to the entire process, e.g. that the process must contain at least one task. May be empty when the process was not validated.- Specified by:
getProcessValidationResultin interfaceIWorkflowValidationResult- Returns:
- The validation result for the entire process.
-
getTaskValidationResults
Description copied from interface:IWorkflowValidationResultGet the map between the UUID of a workflow task and the validation result for that task. If a task does not appear in this map, either an exception was thrown during its validation (seeIWorkflowValidationResult.getUnhandledExceptions()), or the task was not scheduled to be validated.- Specified by:
getTaskValidationResultsin interfaceIWorkflowValidationResult- Returns:
- The validation results for each task.
-
getUnhandledExceptions
Description copied from interface:IWorkflowValidationResultGets all unhandled exception that occurred during validation. No error messages may be generated in case this contains any exceptions, however, the workflow process, task, or node should be regarded as invalid and should not be persisted.- Specified by:
getUnhandledExceptionsin interfaceIWorkflowValidationResult- Returns:
- All unhandled exceptions that occurred during validation.
-
ofError
- Parameters:
throwable- Unhandled exception that occurred and caused the validation process to fail.- Returns:
- A new POJO with no validations results and the given unhandled exception.
-