Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道如何从任务流中的支持 bean 获取用户在 Oracle SOA 11g BPMN 应用程序中的角色?
我需要知道用户的角色才能激活一些字段,我的想法是从支持 bean 中获取它并做一些事情。有一个更好的方法吗?
你有几个选择:EL:
#{securityContext.userInRole}
但不确定检查用户是否是您需要的。您可以获得实际的角色列表
oracle.adf.share.security.identitymanagement.UserProfile = ADFContext.getCurrent().getSecurityContext().getUserProfile();
您也可以在 VO/EO 层使用 groovy,但谈到 SOA,我不确定这是否真的适用于您......