i am connected to a mysql database and want to make an insert statement via the mysql connector. For the query i am using the query window of the mysql connector configuration.
My query looks like this:
INSERT INTO table
(test, test2, test3, test4)
VALUES (‘${var}’, NULL, NULL, ${var});
Unfortunately when i am testing this insert statement in the connector configuration, bonita always shows an error: "Input parameter ‘script’ uses an expression with an not invocable reference.
The Syntax should be ok. The variables are defined globally with a default value. The connection to the database is ok and inserts without referenced values are possible. The referenced variables are typed in with the code completion to avoid typing mistakes.
Sometimes Bonita maintains a reference on a variable that is already deleted. Make a try on creating a simple process from the scratch with the same variables and a mysql connector just to check this.
Your statement seems to be right and the steps you described are ok too. Post a print screen on the Bonita popup and the log associated, if any is given.
Hola a todos requiero ayuda estoy trabajando con la conexión a Mysql como puedo realizar una condición de búsqueda por cédula de identidad si en esta caso en la base de datos ya existe que me permita pasar a otra tarea para realizar un método en este caso de insert un nuevo registro.
Por favor que alguien me ayude.
thanks for your suggestion. I solved this problem this way:
I downloaded the latest Bonita Version. Then i made my Insert Statement like described above.
Then i tested the Statement in the Configuration Window. Unfortunately the same error pops up. But then i checked the log files und no error was displayed. Thus the data was saved into my database. (Awesome).
So i have one hint for those who have the same problem. **Don’t ** test your Insert Statements in the Configuration Window if you use referenced bonita variables.
Sorry, but I didn’t noticed that you were “testing” in the script/connector window. Indeed this “test” does not recognize variables (any type). You need to test only with values (a fault from Bonita, in my opinion).
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.