In the modeler you have tokens which help you to get an userrole object based on that token. Now I want to loop through the list of userroles of a user and make the comparison that if a user has a certain userrole then do something. I want to do this in such a way that when the userrole name should change the java compiling will fail. In that way I make sure that the application will not break on calling this piece of java code.
Marco de Kievit
I don't know if this is available in the Java API, but if it doesn't you could make a lookup entity yourself with:
a string attribute
an association to a role.
Retrieve a list from this lookup entity based on the user roles and compare the string attribute instead.