Skip to Content

In this blog I explain how you can configure user tasks in SAP Cloud Platform Workflow, and how to take full advantage of the available features for your use case.

A user task is a flow object in the workflow that illustrates a task that a human performs. Whenever the process control reaches the user task, the corresponding recipients of the user task will see a task appearing in the My Inbox application. Here, the user is presented with the title & description of the tasks along with other details to take an informed decision in order to complete the task.

For example, when you create create a leave request, a user task is created for your manager to approve. The manager could see information like type of time-off, start & end date of the time-off, who triggered the time-off request, etc. so that he/she can take an action (Approve/Reject the request).

In the workflow editor, to add a user task you can either drag and drop the ‘User Task’ from the palette to the editor or (even better) use the speed buttons to add them to the workflow model.

The user task requires the following information to be complete:

  1. Name, Documentation & Display Texts.
  2. Recipients of the task who can act on the task.
  3. User Interface which will be shown in ‘My Inbox’.
  4. Other properties like priority, due date, etc.

Name, Documentation & Display Texts


The following properties are available in the General tab:


You can maintain any text here that gives a brief about the user task. Note that this text will be displayed in the user task activity of the workflow model and in My Inbox as page title. (Tip: keep it precise and brief).


In this optional field, you can maintain the detailed description about the user task – what it is meant for and what is the desired outcome of this task. If you had used a collaborative modelling tool to define the workflow (example, SAP Power Designer, SAP EA Designer, etc), you will already have the content for Name & Description.

Show in Inbox Workflow Log:

When you enable this checkbox, the activity log corresponding to the user task (for example, user task is created, user task is completed, etc.) will be shown for the end users in My Inbox who is responsible for user tasks in that workflow. The end users could click on ‘Show Log’ button in My Inbox to view the all user tasks performed so far for that workflow instance. They also get to know who has performed them and when it was completed.

By default, every user task is shown in the workflow log. But, if the user task has sensitive information that it should not be shown to recipients of further user tasks of the workflow, then you can uncheck the same. This will hide the user task appearing in the workflow log.

Note: By unchecking the above property, you can prevent the task recipients to view the workflow log for the respective user task, but you cannot prevent from showing it in the ‘Monitor Workflow’ app (used by the Workflow Admin).

The following properties are available in the DETAILS tab of user task Properties:

Display Texts


You maintain the title of the task in subject and this text is displayed in My Inbox. Keep it precise and make sure it contains attributes to uniquely identify user tasks, for example the Business Key. You could combine static text together with expressions to dynamically form the text based on the workflow context.

Example for bad subject text is ‘Approve Leave Request’. When this task is displayed in My Inbox, the manager needs to go into the details to identify who created the request.

Good subject text uses combination of static and dynamic content. ‘Approve Leave Request for ${context.employee.firstName} ${context.employee.lastName}’. This will be transformed to ‘Approve Leave Request for John Doe’ (assuming the workflow context contains employee information).


Here, you can provide detailed description on what the task recipient need to perform. This description can be shown in My Inbox to the end users (refer to the help documentation on how to enable description in task UI). You can use expressions to provide dynamic texts from the workflow context.

Task Recipients

Here you provide one or more users who should process the user task. Task recipients could either be a single user ID or multiple user IDs, one or more user groups (use comma separated values for multiple user id/group) or you could also dynamically determine them using a SAP Cloud Platform Business Rules (and set it in the workflow context) or a combination of the above.

In the image below, I have used a static user (P194….) and a list of users determined by a SAP Cloud Platform Business Rule and made available in the workflow context.

Note: You can assign a maximum number of 100 users or groups as recipients to a user task.

User Interface

To assign a custom task UI to the user task, first import the SAP UI5 application project to the WebIDE workspace (you can do it without importing the application, but assigning user interface is very simple if you have the application in the workspace).

  1. Click the Select button
  2. Choose the project name from the drop down (all the projects available in your webIDE workspace will be listed here)
  3. Choose the SAPUI5 component path from the dropdown

For more information, refer to the help document which also explains the steps to manually provide the custom task UI details.

Other Properties


You can set priority of the user tasks depending on how critical the task is. By default, the priority is set as medium, but you can set either of Low, Medium, High or Very High as priority.

When do you need this – Based on the priority, the end user can filter or sort the tasks in My Inbox. This will help the user to focus on, for example, Very High priority tasks especially when there are huge list of tasks to work on.

Due Date

If you need to maintain the duration by when the task is due, you need to select the checkbox. You could either provide a static value or an expression (as per ISO 8601) for the duration by when the task will be due.

Static Value: Static value comprises of the value and its unit, for example 25 Minutes, 2 Days, 1 Month, etc.

Expression: The expression accepts duration in ISO 8601 format. As per the standard, the duration is represented in the format P[n]Y[n]M[n]DT[n]H[n]M[n]S.

P is the duration designator for period, Y for the year, M for month, D for days & T for time. The H, M and S followed by T represents hour, minutes and seconds respectively. For example, P2Y represents a duration of 2 years. Similarly, P1M3D represents 1 month and 3 days while P3DT1H30M represents duration of 3 days 1 hour and 30 minutes. (Note that all designators other than P are optional, but atleast one designator other than P should be present. For example, P is invalid, while P1D is a valid duration).

Consider the following points before setting an expression for due date:

  • The smallest units which the duration specification supports are minutes.
  • The “Week” unit (“W”) is not supported, but instead you can use the “Days” (“D”) to achieve the same result. P1W is same as P7D.
  • The duration specification supports integers only – You cannot have an expression like P1.5M but the same can be achieved with the expression P1M15D.

For the due date you could either give a static ISO 8061 standard value (like P1DT6H) or provide a workflow context expression which will evaluate to the ISO 8061 standard.

The due date information and priority are shown in My Inbox to the task recipients for them to choose the right task to work on. They can use the filter and sort options in My Inbox to work on, for example, overdue very high priority tasks.

Note: The due date, priority, recipients, subject, description, etc of an active task can be modified using the SAP Cloud Platform Workflow REST APIs.

Please keep in mind that not all the features explained here might be needed for your specific use case. But once you are aware of all the features available, it will be very easy to map & apply them for your use case.

To report this post you need to login first.


You must be Logged on to comment or reply to a post.

  1. Varsha Kollu

    Hello Sreenivas,

    Thank you for such an informative post. I have a question regarding recipients in the user task.

    Can we add external email id’s such as gmail or yahoo account id’s as recipient apart from SAP user ID? If yes, could you please tell the steps to be implemented.

    Thank you,


    1. Archana Shukla

      Hello Varsha,

      The users that can be configured in user tasks of workflow can either be SAP Cloud Platform members or IDP users associated with your account. If your user in SAP Cloud Platform or IDP is registered with gmail/yahoo account then you can use the same. You can read more about them in IDP official guide or how-to register to SAP Cloud Platform guides.


      1. Joy Lee

        Hello Archana,

        I wonder know if SAP Cloud Platform trial user can send message to other users such as you have mentioned in this comment?

        Best regards,

        Joy Lee


Leave a Reply