I have a form that contain a select box, in order to fill it with users, i used a conector where i have done an mysql query to retrieve the users. In order to do this i have used this groovy script:
List result = new ArrayList();
while (resultset.next()){
List sousListe = new ArrayList();
sousListe.add(resultset.getString(2));
result.add(sousListe);
}
return result;
I managed to retrieve the users , but when deploy the select box i see the data in this format:
[ username ].
I think that is because i’m saving the results in arrayList, and as i’m begginer of groovy script , i don’t know how i resolve the problem , so:
¿Is it possible to retrieve the usernames using an other way?
¿Is it possible to save the users from organization in a variable?
I know how to convert any data to json structure , now i’m not asking about php themes, because i’m trying to program a groovy script , and that i know , no is possible to execute php code or javascript (any code except groovy) in a conector from bonita studio. or yes?
my qustion is :
¿Is it possible to retrieve all the users that i have in my organization and then save them in a variable, previously created?
¿Are there any other way to retrieve the users using mysql query into a conector, using any other code ?
My idea is put these users, in a select boxes , because these users , i will use them in order to assign them human tasks.
If you remember , i asked you in other question , and is still not finished :
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.