I wonder if there is a way to render conditionally the items of a function tree in a workplace like we do in other components. In our case this rendering would rely on the roles of the logged-in user.
yes this is possible, by explicitly feeding the workpace function tree with a dynamically assembled tree of items.
I believe, currently you use the XML assembly of items. The same inforamtion that you pass in XML can be transferred via Java API (actually the XML is a JAXB representation of this UI).
The imported WorkplaceFunctionTreeInfoNiode is the bean structure that represents the user's function tree.
Typical scenario would be:
1. Logon screen
2. as part of logon processing: assemble function tree for user / user role, import in workplace and then navigate to workplace.