Filenet - Get Email Id out of user id in Filenet Workflow

两盒软妹~` 提交于 2019-12-11 10:13:29

问题


I am new to Filenet BPM and I am working on an approval system workflow where an attached document is either approved Or rejected based on the response. I have to send an email to Originator that the document is approved Or rejected and I am able to fetch the userId/AliasId of a person who launched the workflow but I am unable to get the emailId out of a userid. We already had an LDAP configuration settings at domain level but I don't know what should I do to achieve this functionality. Please help.


回答1:


You should use com.filenet.api.security.User:

User user = Factory.User.fetchInstance(connection, userId, null);
String email = user.get_Email();

userId may be in different forms, as noted in the documentation:

Valid strings are the Id, the short name, or the distinguished name. If the authentication provider is Microsoft Active Directory, you can also specify the UPN.



来源:https://stackoverflow.com/questions/48510023/filenet-get-email-id-out-of-user-id-in-filenet-workflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!