Bonita API in Groovy script

1
0
-1

Hello,
After looking for my questions' answer, I think it is very important to know how to use Bonita API in Groovy scripts, can you please hint me how to use APIs like reading users with a role without knowing role id ( /API/identity/role?p=0&c=100&o=displayName ASC ) ( using this one for example in groovy script)?
Thank you all

3 answers

1
0
-1

Hello,

I have the same need as milad. I would like to make an API call to the ideneityApi in a groovy script, in order to get the loggedInUser, and then get his organization Group so i could take a decision on an Gateway level.

Can we please have an example on how to implement the API call in groovy script?

Thanks

1
-2
-1

Hello,

When you are developing in a Groovy Script expression, the variable "apiAccessor" will likely be provided to you (it depends on where the expression will be used). This gives you access to the Java APIs (not REST APIs).

The Javadoc of the IdentityAPI or ProcessAPI can give you a great understanding of what you can perform.

HIH,

1
-2
-1

Hello,

When you are developing in a Groovy Script expression, the variable "apiAccessor" will likely be provided to you (it depends on where the expression will be used). This gives you access to the Java APIs (not REST APIs).

The Javadoc of the IdentityAPI or ProcessAPI can give you a great understanding of what you can perform.

HIH,

Notifications