Skip to Content
SAP Business Process Management

How to send notification to multiple users in BPM

I would like to show you how you can send a Notification activity to multiple users in BPM Process modeling.
1. First you have to create a Data Object that you will keep the user IDs during your process flow.
In my example the data object is called "DataStore" and the element to store the user IDs called "MailUsers" of type string 0..* occurrences.

2. Then create a custom Expression Function.

Right click on Functions -> New Expression Function.

Give the name "GetPrincipalID" and add the parameter "Principal_In" of type Principal.

Press the Expression tab and enter:


3. Then you can append user IDs in the "MailUsers" element during your process through mapping (eg. Output Mapping of a human activity).
Add the following expression to "MailUsers" by double-clicking it (in red you enter each time the ID of the user you want to append in the element of the data object).
After that, right-click "MailUsers" and select Assignment -> Append.
4. Finally, create the Notification activity and go to Properties -> To -> Use an expression and enter the following: