Class WorkflowValidationBean

java.lang.Object
de.xima.fc.workflow.designer.bean.WorkflowValidationBean
All Implemented Interfaces:
Serializable

@ViewScoped @Named public class WorkflowValidationBean extends Object implements Serializable
Bean for controlling the validation aspect of the workflow flowchart and node / trigger properties.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • WorkflowValidationBean

      public WorkflowValidationBean()
  • Method Details

    • onPropertiesPanelRender

      public PropertiesFormRenderOptions onPropertiesPanelRender()
      Invoked when the properties panel is about to be rendered. Makes sure that validation messages are displayed even when the properties panel is opened the first time for a certain workflow node.
      Returns:
      The options for the properties panel, as required by the PropertiesForm.onPreRender(javax.faces.context.FacesContext, javax.faces.event.PreRenderViewEvent) callback.
    • onPropertiesPanelValidated

      public void onPropertiesPanelValidated(ValidationCompleteEvent event)
      Invoked when the properties panel was validated. Stores the validation result so that faces messages can be restored later when the same workflow element is selected again; and so that validation messages can be displayed in the flowchart area.
      Parameters:
      event - The validation event that occurred, as triggered by the properties form.
    • onValidateClicked

      public void onValidateClicked()
      Called when the validate button is clicked in the workflow designer. Validates all elements for all validation groups.
    • saveInvalidWorkflow

      public void saveInvalidWorkflow()
      Saves an invalid workflow when the user confirmed they wish to do so.
    • validateAndSave

      public void validateAndSave()
      Persist the process in the database, irrespective of whether it is valid. Then performs a full validation and informs the user in case the process is invalid.
    • validateBackground

      public void validateBackground()
      Validate the current workflow in the background while the user is editing the workflow. This provides incremental feedback to the user. Once they attempt to save the workflow, a full validation is performed.