How to get a group, searching by incomplete group name?

1
0
-1

Bonita: 7.1

groupList = [

{"Europe_england_york"},

{"Europe_germany"},

{"Europe"}

]

I use the following API:

../API/identity/group?s=york

result = []

I want:

result = "Europe_england_york".

It only returns what I want if I search "Europe_e".

thanks in advance.

1 answer

1
+1
-1
This one is the BEST answer!

You can read how the search function works in Bonita here:
https://documentation.bonitasoft.com/bonita/2021.1/using-list-and-search...

Normally it searchs only the start of the field. That's why in your example it would only search from left to right.

There's a second option that's explained in the above link named "Word Based Search". With this option if your group name was "Europe england york" (notice the whitespace between the words) you could do:

../API/identity/group?s=york

or

../API/identity/group?s=engl

or

../API/identity/group?s=Europ

And it would find the group "Europe england york"

I hope I explained myself correctly, english is not my first language

Notifications