@Named @RequestScoped public class ValidationController extends Object implements Serializable
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
| Constructor and Description |
|---|
ValidationController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfirmMessage(org.imixs.workflow.ItemCollection event)
This method evaluates the validation confirm message from a given BPMN event
object.
|
boolean |
isRequired() |
void |
setRequired(boolean required) |
public boolean isRequired()
throws org.imixs.workflow.exceptions.PluginException
org.imixs.workflow.exceptions.PluginExceptionpublic void setRequired(boolean required)
public String getConfirmMessage(org.imixs.workflow.ItemCollection event)
event - Copyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.