Class WorkflowValidationModel
java.lang.Object
de.xima.fc.workflow.designer.model.WorkflowValidationModel
- All Implemented Interfaces:
Serializable
View model that stores the current validation state of the workflow being edited. It stores both the result of the
JSF validation, as well as the result of the view-independent validation. The JSF validation results are used as a
fallback for legacy actions that cannot perform an independent validation.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowValidationModel
empty()
void
setExternalElementValidations
(Map<ElementKey, IWorkflowElementValidationResult> externalElementValidations) void
setExternalProcessValidation
(IWorkflowElementValidationResult externalProcessValidation) void
setExternalProcessValidation
(Optional<IWorkflowElementValidationResult> externalProcessValidation) void
setExternalTaskValidations
(Map<UUID, IWorkflowElementValidationResult> externalTaskValidations) void
setInteractiveElements
(Set<ElementKey> interactiveElements) void
setJsfValidations
(Map<ElementKey, JsfValidationResult> jsfValidations)
-
Method Details
-
getExternalElementValidations
- Returns:
- The external validations that were produced by the
IWorkflowValidator
for the workflow elements (nodes / triggers).
-
getExternalProcessValidation
- Returns:
- The external validation that was produced by the
IWorkflowValidator
for the workflow process.
-
getExternalTaskValidations
- Returns:
- The external validations that were produced by the
IWorkflowValidator
for the workflow tasks.
-
getInteractiveElements
- Returns:
- Set of elements the user has already interacted with. These are the elements that are applicable to automatic background validation. This ensures that newly added elements are not validated and errors are not displayed before the user has had a chance to configure these elements.
-
getJsfValidations
- Returns:
- A map between the workflow elements and the corresponding JSF validation (from the process validations phase of the faces servlet) that were captured.
-
setExternalElementValidations
public void setExternalElementValidations(Map<ElementKey, IWorkflowElementValidationResult> externalElementValidations) - Parameters:
externalElementValidations
- The external validations that were produced by theIWorkflowValidator
for the workflow elements (nodes / triggers).
-
setExternalProcessValidation
public void setExternalProcessValidation(IWorkflowElementValidationResult externalProcessValidation) - Parameters:
externalProcessValidation
- The external validation that was produced by theIWorkflowValidator
for the workflow process.
-
setExternalProcessValidation
public void setExternalProcessValidation(Optional<IWorkflowElementValidationResult> externalProcessValidation) - Parameters:
externalProcessValidation
- The external validation that was produced by theIWorkflowValidator
for the workflow process.
-
setExternalTaskValidations
public void setExternalTaskValidations(Map<UUID, IWorkflowElementValidationResult> externalTaskValidations) - Parameters:
externalTaskValidations
- The external validations that were produced by theIWorkflowValidator
for the workflow tasks.
-
setInteractiveElements
- Parameters:
interactiveElements
- Set of elements the user has already interacted with. These are the elements that are applicable to automatic background validation. This ensures that newly added elements are not validated and errors are not displayed before the user has had a chance to configure these elements.
-
setJsfValidations
- Parameters:
jsfValidations
- A map between the workflow elements and the corresponding JSF validation (from the process validations phase of the faces servlet) that were captured.
-
empty
- Returns:
- A new empty validation model with no validation results.
-