Hi all,
i created a custom field (age) for users and would like to retrieve the data with groovy script?
How can i achieve this?
Hi all,
i created a custom field (age) for users and would like to retrieve the data with groovy script?
How can i achieve this?
Bad design is what I would suggest…
You don’t want to have a custom field called age. You want a custom field called DateOfBirth.
Then you can just subtract then from now to get the age of the person, which changes every year like mine did today by the way.
Have a look at the documentation for
org.bonitasoft.engine.identity
Interface CustomUserInfoValue
regards
Seán
PS: If this solves your problem, please mark as Resolved
List customUserInfoList = apiAccessor.getIdentityAPI().getCustomUserInfo(user.getId(), 0, 100);
This is no design question, the custom field has no relevance to the question. Anyway, Happy Birthday and thanks for the reply!
How can I implement the script into my process? I would like to save the result to a variable.
Regards!