How to get Some basic Detail of Current process ? when user use it Like ::::: LOGGED USER ID , CURRENT PROCESS ID , etc


in community version , pl provide how to get following values

  1. logged user id
  2. logged user name
  3. current process id
  4. current task id
  5. current task name
  6. current case id

pl suggest how to get following


Submitted by pedrociarlini on Mon, 03/16/2020 - 20:59

Related to 6.x version??

2 answers


you can do it for the getUser there I leave you an example
def firstname = apiAccessor.getIdentityAPI().getUser(loggedUserId).getFirstName();
def lastname = apiAccessor.getIdentityAPI().getUser(loggedUserId).getLastName();
//def caso = apiAccessor.getIdentityAPI.getCustomUserInfo(loggedUserId,1,1)
def caso = apiAccessor.getIdentityAPI().getUser(loggedUserId).getId();
def caso1 = apiAccessor.getIdentityAPI().getUser(loggedUserId).getManagerUserId();
def caso2 = apiAccessor.getIdentityAPI().getUser(loggedUserId).getJobTitle();
def caso3 = apiAccessor.getIdentityAPI().getUser(loggedUserId).getCreatedBy();
def caso4 = apiAccessor.getIdentityAPI().getUser(loggedUserId).getIconPath();
def caso5 = apiAccessor.getIdentityAPI().getUser(loggedUserId).getCreationDate();
def caso6 = apiAccessor.getIdentityAPI().getUser(loggedUserId).getManagerUserName();

return firstname+" "+lastname+" "+caso +" "+caso1+" "+caso2+" "+caso3 +" "+caso4+" "+caso5+" "+caso6;


Hi Kpp!

To get the user name etc..follow this tutorial :

But i don't know how to get the current process id, because i need to suspend / cancel / resume on a process already running but i can't make this first step (get ID..).