Writing a workflow condition
What are workflow conditions? They determine whether a workflow action is available or not. Considering the importance of a workflow in installations and how there is a need to restrict the actions either to a set of people, roles, and so on, or based on some criteria (for example, the field is not empty), writing workflow conditions is inevitable.
Workflow conditions are created with the help of the workflow-condition
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 implement the |
|
The localization key for the human-readable name of the plugin module. |
|
The human-readable name of the workflow condition. |
The following are the key elements supported in this module:
Name |
Description |
---|---|
|