Using User Role In Decision Activity In Nanoflow

0
Hello, I would like to utilize the current user’s role in a decision activity in a nanoflow so that I can make the flow do different things depending on the role.  What is the best way to do this?
asked
1 answers
1

You can retrieve a role in a database activity with an xpath like: [id = ‘%Userrolename%’], where the userrolename is a token available in the list like currentuser e.g.

Add the role to a new list, that will have just 1 record.

Also retrieve the roles for the user and then perform a list action (Union) if the resulting list is not empty the user has the role and you can base your decision on that.

answered