Class ValidationController

  • All Implemented Interfaces:
    Serializable

    @Named
    @RequestScoped
    public class ValidationController
    extends Object
    implements Serializable
    The ValidationController evaluates the BPMN event validation rules.

    A bpmn event object can be provided with the optional validation rules in the workflow result

     
      <validation name="required">false</validation>
      <validation name="confirm">Are you sure?</validation>
     
     

    These flags can be used to dynamically evaluate the required field of a h:input ui component:

    required="#{requiredController.required}"

    The method getConfirmMessage evaluates the text of the validation tag named 'confirm'. This message text can be used for java script validation

    Version:
    1.0
    Author:
    rsoika
    See Also:
    Serialized Form
    • Constructor Detail

      • ValidationController

        public ValidationController()
    • Method Detail

      • isRequired

        public boolean isRequired()
                           throws org.imixs.workflow.exceptions.PluginException
        Throws:
        org.imixs.workflow.exceptions.PluginException
      • setRequired

        public void setRequired​(boolean required)
      • getConfirmMessage

        public String getConfirmMessage​(org.imixs.workflow.ItemCollection event)
        This method evaluates the validation confirm message from a given BPMN event object.
        Parameters:
        event -
        Returns:
        - the confirm message or null if not defined.