User tasks
This page explains how to add user tasks to workflow definitions. User tasks allow business users to perform actions in workflow instances.
Data-driven workflows, available in Semarchy xDM 2023.1 and later, are subject to specific licensing requirements; please confirm your eligibility to use such new functionality by consulting your license agreement or by contacting your Semarchy account representative prior to use. All customers can still use the workflow feature available in previous versions (now known as legacy workflows). For more information, see Workflows (legacy). |
The Assignment Condition property enables data-driven assignment in workflows. This determines the candidates and assignees for user tasks.
-
Candidates are all the users who can claim a task. The list of candidates is determined by the Assignee Required Role and the Assignment Condition properties.
-
Assignees are the users who are assigned to a task. The assignee is selected manually when:
-
A candidate claims the task.
-
Next Task Assignee is selected on the previous task.
-
If the list of candidates only contains one candidate (auto-assignment).
-
Add a user task
To add a user task to a workflow definition:
-
Click the Create Step button.
The Add Step dialog appears. -
From the Type drop-down list, select UserTask.
-
In the Name field, enter a name for the user task.
-
Click Create. The step is added to the diagram:
-
Click the step you just added. The side panel sweeps in from the right.
-
Set the user task properties.
User task properties
General properties
Property | Required | Description | ||
---|---|---|---|---|
Label |
Optional |
Label given to the user task. This label is visible in the diagram. |
||
Icon |
Optional |
Image displayed:
Click the Browse image button to select an image from the image library.
|
||
Application |
Required |
Application in which the user task is processed. |
||
Assignee Required Role |
Optional |
User role to which the current task can be assigned. If <None> is selected (default), any user can claim and process this task. |
||
Optional |
SemQL expression to determine the assignee for the task. The condition may be used instead of Assignee Required Role or in addition to it. Click the SemQL editor button to open the SemQL editor. For more information on all the attributes, see Workflow attributes. Only the workflow initiator can be a candidate for the task
Username = StepInstance.WorkflowInstance.InitiatorName
|
|||
Assignee Can Release |
Optional |
Determines whether the user to whom the current task is assigned can release it. |
||
Task Type |
Required |
Type of user task. Possible value is:
|
||
Entity |
Required |
Entity authored using the current user task. |
||
Stepper |
Required |
Stepper to use to author data in the workflow.
|
My Tasks configuration
Within My Tasks, the task board table view can be configured to display details of the record handled in a task. To show the record details columns, choose a collection from the Collection drop-down menu under the My Tasks Configuration section.
Property | Required | Description | ||
---|---|---|---|---|
Collection |
Required |
Collection to use to display record details in a task’s table view in My Tasks.
|
Notifications
Notifications inform users of key events related to tasks in a workflow instance, such as task assignments, task time limits, and workflow due dates. These notifications are sent by email and can be configured for each user task in a workflow.
Workflow email notifications are sent using the first SMTP notification server defined as default server in the Configuration module. |
Configure email notifications
To configure notifications for a specific user task:
-
Select the desired user task in the editor to open its side panel.
-
Configure the notification options in the sections described below.
-
In the Notifications—Task Assignment section, configure the following options:
-
Notify Candidates: select or clear the checkbox to specify whether candidates are notified when a task is assigned to them (enabled by default).
If the Notify Candidates option is enabled and the user task is not automatically assigned to a single user, notifications are sent to all candidates in the following scenarios:
-
When the task is created and the candidate list is generated.
-
When an administrator manually refreshes the candidate list (for more details, see Workflow administration).
-
When the task is released.
-
-
Notify Assignee: select or clear the checkbox to specify whether the assignee is notified when a task is assigned to them (enabled by default).
If the Notify Assignee option is enabled and the task is assigned to a single user, notifications are sent to the assignee in the following scenarios:
-
For automatic assignments, when the list of candidate assignees contains only one user.
-
When an administrator refreshes the candidate list, and it contains only one user to whom the task is automatically assigned (for more details, see Workflow administration).
-
When the task is automatically assigned to the next task assignee.
-
When a workflow administrator assigns the task manually (for more details, see Workflow administration).
-
-
-
In the Notifications—Task Time Limit section, configure the following options:
-
Max Duration (minutes): enter a value to specify the time period after which a notification will be triggered if the task is still pending.
-
Notify Candidates/Assignee: select or clear the checkbox to specify whether the task candidates or assignee are notified if the task exceeds the time limit (disabled by default).
-
Notify Admin: select or clear the checkbox to specify whether the workflow administrator is notified if the task exceeds the time limit (disabled by default).
-
Notify Role: expand the dropdown menu and select a role to be notified when the task exceeds the time limit.
-
-
In the Notifications—Workflow Due Date section:
-
Notify Candidates/Assignee: select or clear this checkbox to specify whether the candidates or assignee are notified when the workflow’s due date is reached (disabled by default).
-
-
In an MDM application, users can opt out of receiving email notifications by switching off the relevant toggle in and clicking Save. The following options can be disabled:
|
Customize email notifications
The layout of email notifications is pre-defined. Also, the notifications are sent in the language defined in the user’s profile. However, designers can customize the following elements:
-
The branding of notifications using the application properties of the user task. For more information, see Configure the application branding.
The following application properties can be customized:
-
Title Bar Default Color: header color of the email template. If this property is not set, the xDM default title bar color is used.
-
Logo: image of the image library to use as the application logo. Defaults to
images://default/logo.png
with height set to 50 and width set to Keep ratio.For optimal rendering, using SVG image files is not recommended, as this format is not supported by many email clients. -
Title: application’s title.
-
-
Record data displayed in notifications by setting the Display Card property for the concerned entity in the Entities section of the workflow definition. If no display card is selected, then the default display card of the entity is used. For more information, see Display cards.
User-dependant built-in variables (such as V_USERNAME
) included in the primary or secondary text expressions of display cards are ignored in workflow email notifications. -
The subject and textual content of notifications using custom translations. For more information, see Custom translations.
Transitions
A user task must have at least one transition. Transitions determine the different steps that the workflow can move to after the current step.
When multiple transitions are available in a stepper, business users can select a transition that the workflow should move along.
The first transition is visible as the primary action of the split button. The remaining transitions are considered secondary actions and can be accessed by expanding the split button.
The button also contains other default actions like Save for later and Release. |
To add a transition:
-
Click the Create button to create a transition.
-
In the Add Transition dialog, enter a name for the transition.
-
Click Create.
-
In the side panel, expand the transition you just created and set its properties.
General transition properties
Property | Required | Description | ||
---|---|---|---|---|
Target Step |
Required |
Step that should follow the current step. |
||
Name |
Required |
Technical name given to the transition. Click the Edit button to edit the name. |
||
Label |
Required |
Label given to the transition. This label appears:
|
||
Icon |
Optional |
Image to display in the workflow diagram as well as in steppers. Click the Browse image button to select an image from the image library. |
||
Required Role |
Optional |
Role required to perform the transition. The value <None> allows users with all roles to perform the transition. The transition is not available if the current task assignee does not have the specified role. |
||
Available From My Tasks |
Optional |
Determines whether the transition is available in My Tasks. |
||
User Task Completion Required |
Optional |
Determines whether the user task needs to be completed to perform the transition. Selecting this option makes the transition unavailable until the stepper is completed. |
||
Behavior On Transition |
Required |
Defines how the data is processed after the transition. Possible values are:
|
||
Validations |
Optional |
Displays the number of active validations for the selected transition. To configure validations for a transition:
|
||
Show the Wait Dialog |
Optional |
Displays a dialog after the transition is triggered informing the user that the transition is being processed. This dialog is visible until the user hides it, another user task is initiated, the workflow enters or exits a parallel block, or when the workflow is complete. Users can click Run in Background to hide the dialog. |
Transition parameters
The Transition Parameters section allows to select which parameters are displayed to users within a transition dialog. This dialog appears at the conclusion of a workflow step and the initiation of the subsequent one, if any.
Property | Description | ||
---|---|---|---|
Enable Next Task Assignee Selection |
Allows the current task assignee to select an assignee for the next task in the workflow. The selection can be made in the transition dialog.
|
||
Mandatory Next Task Assignee Selection |
Only applies if Enable Next Task Assignee Selection is selected. Makes it mandatory for the current assignee to select an assignee for the next task. |
||
Enable Description |
Allows the current assignee to enter a description in the transition dialog. |
||
Enable Comment |
Allows the current assignee to enter a comment in the transition dialog. |
||
Mandatory Comment |
Only applies if Enable Comment is selected. Makes it mandatory for the current assignee to enter a comment. |
||
Enable Priority |
Allows the current assignee to select the priority in the transition dialog. |
||
Enable Due Date |
Allows the current assignee to specify a due date in the transition dialog. |
||
Mandatory Due Date |
Only applies if Enable Due Date is selected. Makes it mandatory for the current assignee to specify a due date. |
||
Enable Attachments |
Allows the current assignee to add attachments. |
||
Mandatory Attachments |
Only applies if Enable Attachments is selected. Makes it mandatory for the current assignee to add an attachment. |