Hi all,
I need to assign a Task to a user, but the inout data that I have from the user is his "externalID" rather thank his userId. Is it possible to get the "userId" from the "externalID"? If I get the "userId" I can use the task.setAssignee method, or is there any other approach? Thank you.
Solved! Go to Solution.
if you are using a task listener to set task.setAssignee(..). you can inject UserService from APS and get your user from external_id by userService.findUserByExternalId(externalId);
hope it helps.
if you are using a task listener to set task.setAssignee(..). you can inject UserService from APS and get your user from external_id by userService.findUserByExternalId(externalId);
hope it helps.
Thank you very much Abbas. Where I can find the documentation of all methods available in this userService bean? Are they another beans available to use? This looks realy handy.
Thanks again.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.