Class 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:
    Serialized Form
    • Constructor Detail

      • WorkflowValidationBean

        public WorkflowValidationBean()
    • Method Detail

      • 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.