Class WorkflowValidationModel

java.lang.Object
de.xima.fc.workflow.designer.model.WorkflowValidationModel
All Implemented Interfaces:
Serializable

public class WorkflowValidationModel extends Object implements 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 Details

    • getExternalElementValidations

      public Map<ElementKey,IWorkflowElementValidationResult> getExternalElementValidations()
      Returns:
      The external validations that were produced by the IWorkflowValidator for the workflow elements (nodes / triggers).
    • getExternalProcessValidation

      public Optional<IWorkflowElementValidationResult> getExternalProcessValidation()
      Returns:
      The external validation that was produced by the IWorkflowValidator for the workflow process.
    • getExternalTaskValidations

      public Map<UUID,IWorkflowElementValidationResult> getExternalTaskValidations()
      Returns:
      The external validations that were produced by the IWorkflowValidator for the workflow tasks.
    • getInteractiveElements

      public Set<ElementKey> 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

      public Map<ElementKey,JsfValidationResult> 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 the IWorkflowValidator for the workflow elements (nodes / triggers).
    • setExternalProcessValidation

      public void setExternalProcessValidation(IWorkflowElementValidationResult externalProcessValidation)
      Parameters:
      externalProcessValidation - The external validation that was produced by the IWorkflowValidator for the workflow process.
    • setExternalProcessValidation

      public void setExternalProcessValidation(Optional<IWorkflowElementValidationResult> externalProcessValidation)
      Parameters:
      externalProcessValidation - The external validation that was produced by the IWorkflowValidator for the workflow process.
    • setExternalTaskValidations

      public void setExternalTaskValidations(Map<UUID,IWorkflowElementValidationResult> externalTaskValidations)
      Parameters:
      externalTaskValidations - The external validations that were produced by the IWorkflowValidator for the workflow tasks.
    • setInteractiveElements

      public void setInteractiveElements(Set<ElementKey> interactiveElements)
      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

      public void setJsfValidations(Map<ElementKey,JsfValidationResult> jsfValidations)
      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

      public static WorkflowValidationModel empty()
      Returns:
      A new empty validation model with no validation results.