The special page MediaWiki:WorkflowTriggers makes it possible to set up different triggers for existing workflows. You can access this page from Global actions > Tools > Workflow triggers.
Types of triggers
All triggers share some commonalities:
|Name||Give the trigger a unique name so that it is easy to identify its purpose.|
|Description||Describe to other users in more detail what this workflow does.|
|Workflow to start||Select the workflow that will be triggered.|
|Initial data for the workflow||You can provide some default data to be used in the workflow. In a manual workflow trigger, this data can later be overwritten when the workflow is started by a user.|
|Conditions||Select whether this workflow should only be available in particular namespaces. If no namespace is given, the workflow is available for the entire wiki.
Based on a semantic property
If the wiki uses semantic properties of type date, a workflow can start based on this date. It is possible to define an offset from the date, so that the workflow can start before or after the date in the associated property has been reached.
|Semantic property (of type: Date)||Name of the date-property in the wiki that will trigger the workflow|
|Days offset from the date in the property||Set to a negative number if the workflow should start before the property date (e.g., -7)
Set to a positive number if the worklfow should start after the property date (e.g., 5)
A workflow can also be triggered each time a page is edited. For this trigger it makes sense to set the conditions to individual namespaces and to trigger only on major edits. Users should be instructed that this workflow exists and that they should mark edits as minor when saving the page so that no unnecessary workflows are triggered.
On page creation
When new pages are created, a workflow can also be triggered.
Workflows can also be selected to start manually in particular namespaces. For example, it is possible to create a manual trigger for the Expert Document Control workflow to approve pages. This workflow can then be set to be offered only in a particular namespace and assign an approval task to a particular reviewer group.