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

1
+1
-1

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

2 answers

1
0
-1

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;

1
0
-1

Hi Kpp!

To get the user name etc..follow this tutorial : http://www.tutorialsbag.com/2013/01/bonitasoft-groovy-scripts-to-get-use...

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..).

regards

bik

Notifications