The retrieve with:
[System.UserRoles = $currentUser]
[id = '[%UserRole_Administrator%]']
The decision with
$UserRole_Administrator != empty
You can do an retrieve of the entity System.Userrole with the following xpath:
[id = '[%UserRole_Administrator%]']
[System.UserRoles = $currentUser]
If the userrole is retrieved the user is an administrator. If it is empty, it is not.
I receive the following error message when using the above statement:
After a bit of testing I managed to get it working thanks to Maarten Bonger’s explanation:
`
Can”t you do this by using the object decision?