Writing a workflow validator
Workflow validators are specific validators that check whether some predefined constraints are satisfied or not while progressing on a workflow. The constraints are configured in the workflow and the user will get an error if some of them are not satisfied. A typical example would be to check if a particular field is present or not before the issue is moved to a different status.
Workflow validators are created with the help of the workflow-validator
module. The following are the key attributes supported in this module:
Name |
Description |
---|---|
|
This should be unique within the plugin. |
|
The class to provide contexts for rendered Velocity templates. It must must implement the |
|
The localization key for the human-readable name of the plugin module. |
|
The human-readable name of the workflow validator. |
The following are the key elements supported in this module...