in community version ,
pl provide how to get following values
- logged user id
- logged user name
- current process id
- current task id
- current task name
- current case id
pl suggest how to get following
in community version ,
pl provide how to get following values
pl suggest how to get following
Hi Kpp!
To get the user name etc…follow this tutorial :
http://www.tutorialsbag.com/2013/01/bonitasoft-groovy-scripts-to-get-users.html
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
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;
Related to 6.x version??