Package org.imixs.workflow.office.forms
Class ValidationController
java.lang.Object
org.imixs.workflow.office.forms.ValidationController
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfirmMessage(org.imixs.workflow.ItemCollection event) This method evaluates the validation confirm message from a given BPMN event object.booleanvoidsetRequired(boolean required)
-
Constructor Details
-
ValidationController
public ValidationController()
-
-
Method Details
-
isRequired
public boolean isRequired() throws org.imixs.workflow.exceptions.PluginException- Throws:
org.imixs.workflow.exceptions.PluginException
-
setRequired
public void setRequired(boolean required) -
getConfirmMessage
This method evaluates the validation confirm message from a given BPMN event object.- Parameters:
event-- Returns:
- - the confirm message or null if not defined.
-