AnsweredAssumed Answered

Activiti report generation error

Question asked by jeenut on Jan 31, 2017
Latest reply on Jan 31, 2017 by gdharley

Hi all,


I am new to Activiti and was trying to generate report for a workflow I created. The workflow is working fine. To add reporting feature, I made the following two changes:


1. Added ' targetNamespace="activiti-report" ' to the .bpmn file. 

   <definitions xmlns=""    xmlns:xsi="" xmlns:xsd=""    xmlns:activiti="" xmlns:bpmndi=""    xmlns:omgdc="" xmlns:omgdi=""    typeLanguage="" expressionLanguage=""    targetNamespace="activiti-report">


2. Added a variable called reportData which is assigned a JSON object converted to string in a Java service task. 

    JSONObject obj = new JSONObject();
    obj.put("name", "939");
    obj.put("FinalFAF", new Double(0.21));
    obj.put("Random", reportData);

    // Storing the json as process variable
    execution.setVariable("reportData", new java.lang.String(obj.toString()).getBytes("UTF-8"));


Now when I deploy my project in Activiti explorer, I am able to see my project in the reports tab. But on clicking on the generate report tab is gives the following error: 

Invocation of method componentEvent in org.activiti.ui.reports.ReportDetailPanel$2 failed.


I am also attaching a screenshot of my apache tomcat window. 


Can somebody please help.