Bhuber (talk | contribs)
No edit summary
Bhuber (talk | contribs)
No edit summary
Line 83: Line 83:
|-
|-
| style="width:200px;" |<code>PageCheckout</code>
| style="width:200px;" |<code>PageCheckout</code>
| style="" |The page is locked for users who do not participate in the workflow. Only the '''Editor''' (first workflow participant) can edit the page during checkout. While the '''Reviewer''' (second participant)  of the workflow  is reviewing the page, the page stays checked-out to thecan edit the page can edit the page during checkout.checkout. in case the Reviewer requests more edits.
| style="" |The page is locked for users who do not participate in the workflow. Only the '''Editor''' (first workflow participant) can edit the page during checkout. While the '''Reviewer''' (second participant)  of the workflow  is reviewing the page, the page stays checked-out to the editor, so that the editor can make further edits in case the reviewer requests them.
|-
|-
| style="width:200px;" |<code>EditPage</code>
| style="width:200px;" |<code>EditPage</code>
Line 192: Line 192:


To vote on a page:
To vote on a page:
# Open the task from the banner on the page, from '''My Workflows''', or from '''My tasks'''. The '''User vote''' form opens.
# Open the task from the banner on the page, from the '''User dashboard''', or from '''My tasks'''. The '''User vote''' form opens.
# Select '''Approve''' or '''Decline'''.
# Select '''Approve''' or '''Decline'''.
# Enter a comment in '''Comment''', if needed.
# Enter a comment in '''Comment''', if needed.
Line 209: Line 209:


To give feedback on a page:
To give feedback on a page:
# Open the task from the banner on the page, from '''My Workflows''', or from '''My tasks'''.
# Open the task from the banner on the page, from the '''User dashboard''', or from '''My tasks'''.
# Enter the feedback in the comment field.
# Enter the feedback in the comment field.
# Submit the form.
# Submit the form.
Line 228: Line 228:
In addition to the standard workflows, administrators can add custom workflows. A custom workflow is a BPMN diagram in XML format that contains custom activities.
In addition to the standard workflows, administrators can add custom workflows. A custom workflow is a BPMN diagram in XML format that contains custom activities.


A custom workflow can also be imported by uploading a XML file with <code>Special:Import</code> in the subwiki. Importing requires editor rights in the subwiki.
A custom workflow can also be imported by uploading an XML file with <code>Special:Import</code> in the subwiki. Importing requires editor rights in the subwiki.


{{Textbox|boxtype=note|header=Best practice|text=Store workflow files in the MediaWiki namespace. Only administrators can edit pages in this namespace. Building custom workflows is also recommended for administrators only.|icon=yes}}
{{Textbox|boxtype=note|header=Best practice|text=Store workflow files in the MediaWiki namespace. Only administrators can edit pages in this namespace. Building custom workflows is also recommended for administrators only.|icon=yes}}


For a list of the predefined activities, refer to [[Extension/Workflows/Activity|Workflow activities]]. For step-by-step instructions, refer to the [[Extension/Workflows/Tutorial|tutorial for creating a custom workflow]].
For a list of the predefined activities, refer to [[Extension/Workflows/Activities|Workflow activities]]. For step-by-step instructions, refer to the [[Extension/Workflows/Tutorial|tutorial for creating a custom workflow]].


==Notifications==
==Notifications==

Revision as of 10:34, 10 November 2026

SkySapphire

Workflows offer a structured and efficient way to manage content review and approval processes within the wiki. Built on the BPMN 2.0 standard, these workflows enable users to initiate page-based tasks such as approvals and feedback requests. Each workflow is designed to streamline collaboration, ensure quality assurance, and maintain transparency across editorial activities. By integrating these workflows into daily operations, organizations can foster accountability and improve the reliability of their documentation.

BlueSpice includes four standard workflows for page reviews. Administrators can add custom workflows, and workflow triggers can start workflows automatically.

Standard workflows

The four standard workflows request either feedback on a page or the approval of a page. The following table lists the workflows in the order of the sections on this page:

Workflow type Participants Description
Single user approval 1 user Asks one user to vote on a page. A positive vote approves the page automatically.
Expert document control 3 users Assigns the editing, review, and approval of a page to three different users: an editor, a reviewer, and an approver.
Group feedback 1 group Asks the members of a user group to comment on a page.
Single user feedback 1 user Asks one user to comment on a page.

Each standard workflow runs for 7 days. Two days before a workflow expires, the workflow initiator and the currently assigned users receive a notification. If the workflow is not completed within 7 days, it expires and is marked as not completed. The page returns to the status it had before the workflow started. Expired workflows appear in the Aborted view of the workflows overview.

Single user approval

Single user approval asks one user to approve a draft page.

Purpose: Gets a draft page approved by a user with approval rights.

Prerequisite: The approval function must be enabled for the namespace of the page. An administrator enables Approvals for the namespace in the subwiki in the Namespace manager. For more information about the technical background, refer to ContentStabilization.

Workflow instances: Only one approval workflow can run on a page at a time.

BPMN diagram of the Single user approval workflow
BPMN diagram of the Single user approval workflow
Activity Description
CollectData Collects the settings that the workflow initiator enters in the start form. In addition to Instructions and Send report to, the form contains the following field:
  • User: Assigns the task to a user.

For more information, refer to Start form fields.

PageCheckout Locks the page for editing. No one can edit the page while it is checked out, including the assigned user.
UserVote Asks the assigned user to approve or decline the page. The user can add a comment or delegate the task. If the user declines, the workflow skips the ApprovePage activity, and the page keeps its previous status. The workflow initiator receives an email with the voting result.
ApprovePage Sets the page to approved status. This activity runs only if the assigned user approves the page.
SendMail Sends the email report to the recipient specified in Send report to.
PageCheckin Unlocks the page.

View the BPMN file on GitHub

Expert document control

Expert document control has a page edited, reviewed, and approved by three different users.

Purpose: Gets a draft page approved according to the four-eyes principle.

Prerequisite: The approval function must be enabled for the namespace of the page. An administrator enables Approvals for the namespace in the subwiki in the Namespace manager. For more information about the technical background, refer to ContentStabilization.

Workflow instances: Only one approval workflow can run on a page at a time.

BPMN diagram of the Expert document control workflow
BPMN diagram of the Expert document control workflow
Activity Description
CollectData Collects the settings that the workflow initiator enters in the start form. In addition to Instructions and Send report to, the form contains the following field:
  • User: Assigns the tasks to three different users: Editor, Reviewer, and Approver. Each user receives separate instructions.

For more information, refer to Start form fields.

PageCheckout The page is locked for users who do not participate in the workflow. Only the Editor (first workflow participant) can edit the page during checkout. While the Reviewer (second participant) of the workflow is reviewing the page, the page stays checked-out to the editor, so that the editor can make further edits in case the reviewer requests them.
EditPage The Editor user can edit the page and completes the task without comment.
UserVote After the Editor step has been completed, the Reviewer user can review the page and submit a vote. Editing by the Reviewer is not possible. As an alternative, the Reviewer can delegate the task. If the vote is positive (Approve), the workflow continues. If the Reviewer rejects, the workflow goes back to the Editor.

The workflow initiator gets an email about the voting result.

PageCheckin After the Reviewer submits a positive vote (accept), the page is checked in and the workflow continues.
PageCheckout In this step, the page checkout locks the page for editing completely. The Approver user will not be able to change the page, but needs to approve it.
ApprovePage The Approver can either complete or delegate the task. After the Approver (or the delegate) finishes the assigned task, the page is set from "draft" to "approved" status if the page was in draft status (only if the approver submits a positive vote). If not, this step is skipped.
SendMail Sends the email report to the recipient specified in Send report to, if a recipient is specified.
PageCheckin Unlocks the page.

View the BPMN file on GitHub

Group feedback

Group feedback asks the members of a user group to comment on a page.

Purpose: Collects feedback on a page from the members of a user group.

Prerequisite: The group must exist in the user manager (Special:UserManager).

Workflow instances: Several feedback workflows can run on a page at the same time, independently of one another.

BPMN diagram of the Group feedback workflow
BPMN diagram of the Group feedback workflow
Activity Description
CollectData Collects the settings that the workflow initiator enters in the start form. In addition to Instructions and Send report to, the form contains the following fields:
  • Group: Assigns the task to a user group.
  • Threshold unit: Defines how the workflow calculates the response quota that completes the workflow: as an absolute number of users or as a percentage of the group members.
  • Threshold value: Defines the number or the percentage of users who must give feedback before the workflow is considered complete.

For more information, refer to Start form fields.

GroupFeedback Asks all members of the group to give feedback in a comment field. The members can respond in any order.
SendMail Sends the email report to the recipient specified in Send report to, if a recipient is specified.

View the BPMN file on GitHub

Single user feedback

Single user feedback asks one user to comment on a page.

Purpose: Collects feedback on a page from a single user.

Workflow instances: Several feedback workflows can run on a page at the same time, independently of one another.

BPMN diagram of the Single user feedback workflow
BPMN diagram of the Single user feedback workflow
Activity Description
CollectData Collects the settings that the workflow initiator enters in the start form. In addition to Instructions and Send report to, the form contains the following field:
  • User: Assigns the task to a user.

For more information, refer to Start form fields.

UserFeedback Asks the assigned user to comment on the page.
SendMail Sends the email report to the recipient specified in Send report to, if a recipient is specified.

View the BPMN file on GitHub

Start a workflow

A workflow starts either manually on a page or automatically through a workflow trigger. Triggers also define in which namespaces workflows are available. For more information, refer to Workflow triggers.

To start a workflow:

  1. Open the page.
  2. Open More page actions and select Start a workflow.
  3. Select one of the available workflows.
  4. Select Next. A dialog with the start form opens.
  5. Fill in the fields of the start form.
  6. Select Start.

The workflow starts, and a banner at the top of the page shows that a workflow is running. For approval workflows, the banner also shows that the page is locked.

Start form fields

The start form contains the following fields in all standard workflows. Each workflow adds fields for the assigned users or group. For more information, refer to the activity tables in Standard workflows.

Field Description
Instructions Provides a comment or instructions that help the assigned users understand their task.
Send report to Defines the email address or username that receives an email report with the results when the workflow ends. If a username is entered, the user account must have an email address in the user administration. Otherwise, the report cannot be sent.

Complete a workflow task

Users with an assigned task receive a system notification. They also receive an email notification if an email address is saved for their user account. All tasks assigned to a user appear on the My tasks page. The User dashboard in the user menu additionally shows all active workflows that the user is assigned to.

The task form opens from the banner on the page or from the My tasks page.

To vote on a page:

  1. Open the task from the banner on the page, from the User dashboard, or from My tasks. The User vote form opens.
  2. Select Approve or Decline.
  3. Enter a comment in Comment, if needed.
  4. Select Submit.

The workflow initiator receives an email with the voting result.

Assigned users in approval workflows can delegate their task to another user. After delegation, the new user is considered assigned and receives all further notifications for assigned users.

To delegate a task:

  1. Open the task from the banner on the page or from My tasks.
  2. Select Delegate this task.
  3. In Delegate to, enter the user who takes over the task.
  4. Enter a Delegation comment, if needed.
  5. Select Submit.

To return to the User vote form without delegating the task, select Do not delegate.

To give feedback on a page:

  1. Open the task from the banner on the page, from the User dashboard, or from My tasks.
  2. Enter the feedback in the comment field.
  3. Submit the form.

Track workflows and tasks

A banner at the top of a page shows that a workflow is running on the page. For approval workflows, the banner also shows that the page is locked.

The special page Special:WorkflowsOverview lists all workflows in the wiki. The views Active, Aborted, and Finished filter the list by workflow state. For each workflow, the list shows the workflow type, the subject page, the assigned users, the state, the start date, and the date of the last activity. An information icon opens more details about the workflow.

Workflows overview page
Workflows overview page

Users see their own tasks on the My tasks page and their active workflows in the User dashboard in the user menu.

Workflow triggers

Workflow triggers start workflows automatically under defined conditions, for example when a page is edited. Triggers also define in which namespaces manual and automatic workflows are available. Editors configure triggers on the page Special:WorkflowTriggers. This page can be reached by selecting Wiki actions > Workflow triggers under the menu heading Editing. For more information, refer to Workflow triggers.

Exclude a page from automatic workflows

The behavior switch __NOWORKFLOWEXECUTION__ prevents triggers from starting workflows on an individual page. Any user with edit rights for the page can apply this setting.

In the visual editor, the setting is available under Page Options > Advanced settings. The setting inserts __NOWORKFLOWEXECUTION__ into the page source.

Custom workflows

In addition to the standard workflows, administrators can add custom workflows. A custom workflow is a BPMN diagram in XML format that contains custom activities.

A custom workflow can also be imported by uploading an XML file with Special:Import in the subwiki. Importing requires editor rights in the subwiki.

Best practiceStore workflow files in the MediaWiki namespace. Only administrators can edit pages in this namespace. Building custom workflows is also recommended for administrators only.


For a list of the predefined activities, refer to Workflow activities. For step-by-step instructions, refer to the tutorial for creating a custom workflow.

Notifications

Notification events

Workflows send two kinds of notifications:

  • Generic: Sent for every workflow and activity type.
  • Activity-specific: Sent by individual activities in addition to the generic notifications.
Triggering event Recipients Generic Notes
Task started

(task assigned)

All assigned users Yes Triggered only for activities of the type UserInteractiveActivity, which means only for activities with assigned users.
Task delegated User to whom the task was delegated No Specific to the UserVote activity. After delegation, the new user is considered assigned and receives all further notifications for assigned users.
Vote submitted

(UserVote activity)

Workflow initiator Yes Informs the workflow initiator about the voting result.
Workflow expires soon

(DueDateClose, 2 days before the workflow expires)

Workflow initiator and all currently assigned users Yes
Workflow expired Workflow initiator and all currently assigned users Yes Expiry is a type of abort. The notification is the same as for an aborted workflow and states expiry as the reason.
Workflow aborted

(manually or automatically)

Workflow initiator and all users assigned to the current task at the time of the abort Yes Users assigned to earlier tasks do not receive this notification.
Workflow ended

(only when the workflow ends normally, not when it is aborted)

Workflow initiator Yes

Notification delivery

All users receive system notifications. This subscription cannot be disabled. Email notifications are optional, and users subscribe to them in their preferences.

The wiki sends system notifications immediately after the triggering event. It sends email notifications asynchronously when runJobs.php runs. This behavior applies to all notifications in the wiki, not only to workflow notifications.

Permissions

The Workflows extension uses the following permissions:

Permission Included in role Description
workflows-view reader Allows viewing workflow elements, for example the list of workflows running on a page. Allows viewing the page Special:WorkflowsOverview.
workflows-execute editor, reviewer, admin Allows starting a workflow and completing a task.
workflows-admin admin Allows aborting, restoring, and administering all workflows. Allows viewing and editing the page MediaWiki:WorkflowTriggers.