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:

  1. Click the Create step Create Step button. The Add Step dialog appears.

  2. From the Type drop-down list, select UserTask.

  3. In the Name field, enter a name for the user task.

  4. Click Create. The step is added to the diagram:

    workflow step user task

  5. Click the step you just added. The side panel sweeps in from the right.

  6. Set the user task properties.

User Task Properties

General 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:

  • On the user task in the workflow diagram.

  • In My Tasks within an application.

  • In workflow instance history.

The Browse image Browse image button allows browsing and selecting an image from the image library.

For optimal rendering in data applications, it is recommended to use SVG image files.

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.

Assignment Condition

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 undock to use 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 = UserTaskInstance.StepInstance.WorkflowInstance.InitiatorName

Assignee Can Release

Optional

Determines whether the user to whom the current task is assigned can release it.

Task Type

Required

The type of user task. Possible value is:

  • Data Authoring: task used for authoring data using a stepper.

Entity

Required

Entity authored using the current user task.

Stepper

Required

Stepper to use to author data in the workflow.

The hierarchy of entities manipulated in this stepper must be declared in the Entities section of the workflow definition.

Enable Candidate Notifications

Required

Enabled by default.

Sends a notification to the candidate assignees of this task when it is available and can be claimed by one of them. For more information, see Candidate Notifications.

Enable Assignee Notifications

Required

Enabled by default.

Sends a notification to inform the assignee when this task is assigned to him/her. For more information, see Assignee Notifications.

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.

My Task Configuration
Property Required Description

Collection

Required

Collection to use to display record details in a task’s table view in My Tasks.

If the entity related to the user task has a single-record cardinality, My Tasks will show the display card defined on the collection, along with all the attribute columns defined on this collection. However, if the entity has a multi-record cardinality, only workflow properties are displayed in My Tasks, and there will be no display card or collection columns shown. For more information on cardinality, see Entity properties.

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.

workflow transitions multiple

To add a transition:

  1. Click the Create Create button to create a transition.

  2. In the Add Transition dialog, enter a name for the transition.

  3. Click Create.

  4. In the side panel, expand the transition you just created and set its properties.

General Transition Properties

Transitions
Property Required Description

Target Step

Required

Step that should follow the current step.

Name

Required

Technical name given to the transition. The Edit Edit button allows editing the name.

Label

Required

Label given to the transition. This label appears:

  • In the workflow diagram.

  • In data apps:

    • On stepper actions and buttons.

    • In workflow history.

Icon

Optional

Image to display in the workflow diagram as well as in steppers.

The Browse image Browse image button allows browsing and selecting 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:

  • Keep Data: preserves the data in its current state.

  • Revert Data: data is restored to its state before the current step.

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 you to select the parameters displayed to users in a transition dialog. The transition dialog appears between workflow steps.

Transition Parameters
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.

This option can only be selected if the next step is a user task.

The next task assignee selection is not possible if the next user task has an assignment condition defined.

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.

Notifications

Notifications inform users when a user task in a workflow instance is assigned to them or to a team they belong to. Notifications are sent by email and are triggered by the following events:

  • When a task is assigned to a list of candidates, a candidate notification is sent to these users.

  • When a task is assigned (manually or automatically) to a single user, an assignee notification is sent to that user.

Workflow email notifications are sent using the first SMTP notification server defined as default server in Configuration.

Candidate Notifications

The Enable Candidate Notifications user task property defines whether notifications should be sent to candidate assignees for a user task.

If this option is selected and the user task is not automatically assigned to a single user, then a notification is sent to all candidate assignees:

  • When the task is created and the list of candidates computed.

  • When the administrator manually refreshes the list of candidates (for more details, see Workflow Administration).

  • When the task is released.

To disable candidate notifications:

  • Designers can unselect the Enable Candidate Notifications option.

  • Users can also disable all candidate notifications by switching off the Assigned to my team toggle in My Tasks  Notification Settings and clicking Save.

Assignee Notifications

The Enable Assignee Notifications user task property defines whether a notification should be sent to the assignee of a task.

If this option is selected and the user task is assigned to a single user, then a notification to send to the assignee:

  • In the case of an automatic assignment, for example when the computed list of candidate assignees only contains one user.

  • When the administrator manually refreshes the list of candidates and this list only contains 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.

  • If the task is assigned by a workflow administrator. For more detail, see Workflow Administration.

To disable assignee notifications:

  • Designers can unselect the Enable Assignee Notifications option.

  • Users can also disable all assignee notifications by switching off the Assigned to me toggle in My Tasks  Notification Settings and clicking Save.

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: the header color of the email template. If this property is not set, the xDM default title bar color is used.

    • Logo: the 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, it is recommended not to use SVG image files which are not supported by many email clients.
    • Title: the application 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 Manage Custom Translations.