i am new for Bonitasoft… what is the script to get the value of the column from database?
You can use a Database Connector to do the database connection and everything, then just use a normal Select statement as you would normally i.e.
select * from Users order by userid
In the output, you have to add a little script the change the rowset to a List of list (rows and columns) which you can then process accordingly under noral java/groovy script.
If you wnat to do a select with a where clause then use
select customername from customers where customerid = ${MyVariable}
regards
Actually no script required…
- On the Step add a Connector,
- choose Others and then MySQL, click next
- give it a name, click next
- click next
- Complete the access information, click next
- in the query field add your select statement, click next
- if you want list by list you could just select graphical mode n rows by n columns, no scripting at all required in fact, click next
- in Select Target just give a variable of type list to take the results
use the variable as data to a table widget and you will see the results on the form.
If you are so new to Bonita see:
Create and Run Your First Process, and
Develop a first business process application
which will help, somewhat
regards
thank you,
What script should i Use?
Sorry coz im learning also how to use the script…