- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2020 12:00 PM
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.
- Labels:
-
Alfresco Process Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2020 11:04 AM
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.
Abbas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2020 11:04 AM
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.
Abbas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2020 03:18 AM
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.
