get Current logged in user for forms....
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2012 04:27 AM
Hi ,
please help me in:
1. how can i get Current logged-in user for forms?
2. how can i retrieve list of a group in a dropbox?
please help me in:
1. how can i get Current logged-in user for forms?
2. how can i retrieve list of a group in a dropbox?
Labels:
- Labels:
-
Archive
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2014 04:03 AM
1. Authentication.getAuthenticatedUserId()
2. through the identityService.createGroupQuery()
2. through the identityService.createGroupQuery()
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2014 05:51 AM
hi
i have logged by kermit user
org.activiti.engine.impl.identity.Authentication.getAuthenticatedUserId() return null
???
please help
i have logged by kermit user
org.activiti.engine.impl.identity.Authentication.getAuthenticatedUserId() return null
???
please help
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2014 07:47 AM
Then you need to provide more details. I was assuming this is in Activiti Explorer?
If so, then the authenticated user is set as above. Where are you calling this code?
If so, then the authenticated user is set as above. Where are you calling this code?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2015 04:18 AM
I have called Authentication.getAuthenticatedUserId() in activiti explorer module

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2014 09:03 AM
Hi all,
I have the same error,
when i test "System.out.println("logger is:"+ Authentication.getAuthenticatedUserId()); " in a class test (activiti-designer), i get null.
Or should this work just in explorer when log in ?
Regards.
I have the same error,
when i test "System.out.println("logger is:"+ Authentication.getAuthenticatedUserId()); " in a class test (activiti-designer), i get null.
Or should this work just in explorer when log in ?
Regards.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2014 07:35 PM
Hello,
I have the same issue, but in a custom application, I handle this using Spring aspects, all the interaction with the activiti API is done in a Service Bean, creating a loginAspect before each execution ensures the authentication authenticatedUserId is set,
<code>
@Aspect
public class LoginAspect {
@Before("execution(* com.company.WfService.*(..))")
public void logBefore(JoinPoint joinPoint){
log.info("Starting Checking authentification");
//Se registra el usuario
String wfUserName = Authentication.getAuthenticatedUserId();
String auth = get current logged user….
if ( wfUserName != null && wfUserName.compareTo(auth.getUsername()) != 0 ){
Authentication.setAuthenticatedUserId(auth.getUsername());
}else if ( wfUserName == null ){
Authentication.setAuthenticatedUserId(auth.getUsername());
}
}
}
</code>
I have the same issue, but in a custom application, I handle this using Spring aspects, all the interaction with the activiti API is done in a Service Bean, creating a loginAspect before each execution ensures the authentication authenticatedUserId is set,
<code>
@Aspect
public class LoginAspect {
@Before("execution(* com.company.WfService.*(..))")
public void logBefore(JoinPoint joinPoint){
log.info("Starting Checking authentification");
//Se registra el usuario
String wfUserName = Authentication.getAuthenticatedUserId();
String auth = get current logged user….
if ( wfUserName != null && wfUserName.compareTo(auth.getUsername()) != 0 ){
Authentication.setAuthenticatedUserId(auth.getUsername());
}else if ( wfUserName == null ){
Authentication.setAuthenticatedUserId(auth.getUsername());
}
}
}
</code>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2014 05:14 AM
import org.activiti.engine.impl.identity.Authentication;
