I am trying to use Jasper connector to generate report in Bonita 6.3.7 version. But the generated report is empty. I went through the Bonita Jasper connector code and found the following bug which was causing the empty report. The following is just logical representation of the code.
If(PDF) {
....export to stream...
byte[] content = outStream.toByteArray();
.........
} else if(HTML) {
....export to stream...
byte[] content = outStream.toByteArray();
.........
} else if(.....some type...) {
.............
}
byte[] content;
......create DocumentValue with the byte content......
......set outputparameter..........
So, the DocumentValue is initialized with null content variable.
Hi,
I don’t understand where you see a bug in the code.
When I use the jasper connector, I don’t obtain empty report. It depends of the jrxml file that you use.
The bug is in code line 12 and 13 in the above code snippets that i have pasted. The “content” variable is declared and initialized inside the if statements which have statement scope. The actual DocumentValue object is created with content variable which is just declared and not initialized.
Hello,
I am looking into the Jasper connector code that i have got with Bonita6.3.7 community edition. The version is “bonita-connector-jasper-impl-1.0.0.jar”. As i am not sure that which release build pushed into the connector code, i did decompile the jar and looked into the code.
Is there any repository place from where i can download the connector jar?
Hi I could indicate the passes as getting display or download a report in the portal, first generate my studio jrxml jasper file. The version I use is Bonita 6.3.7 community
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.