Package org.imixs.workflow.office.forms
Class ValidationController
- java.lang.Object
-
- org.imixs.workflow.office.forms.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 Summary
Constructors Constructor Description ValidationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConfirmMessage(org.imixs.workflow.ItemCollection event)This method evaluates the validation confirm message from a given BPMN event object.booleanisRequired()voidsetRequired(boolean required)
-
-
-
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.
-
-