02-22-2017 12:45 PM
Hi,
i have a question regarding the IdentityService.setAuthenticatedUserId. When is this value used? Just for process starting and querying? Or is it used by another service except the activiti-app?
Thanks,
Niklas
02-22-2017 03:39 PM
It seems like, as a whole the IdentityService class is meant to perform CRUD operations related to Users and Groups - so, following that, the method 'setAuthenticatedUserId' actually uses the 'org.activiti.engine.impl.identity.Authentication' class to store the userId with this method 'Authentication.setAuthenticatedUserId(authenticatedUserId)'. The only places that this seems to be accessed in the application using a similar getter, are here:
If you want to follow up on this and see the occurrences for yourself, check their most up-to-date codebase on Github. All of those occurrences happen in either the activiti-explorer or the activiti-engine.
Hope this helps,
-JEarles
02-22-2017 03:39 PM
It seems like, as a whole the IdentityService class is meant to perform CRUD operations related to Users and Groups - so, following that, the method 'setAuthenticatedUserId' actually uses the 'org.activiti.engine.impl.identity.Authentication' class to store the userId with this method 'Authentication.setAuthenticatedUserId(authenticatedUserId)'. The only places that this seems to be accessed in the application using a similar getter, are here:
If you want to follow up on this and see the occurrences for yourself, check their most up-to-date codebase on Github. All of those occurrences happen in either the activiti-explorer or the activiti-engine.
Hope this helps,
-JEarles
Explore our Alfresco products with the links below. Use labels to filter content by product module.