cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti report generation error

jeenut
Champ on-the-rise
Champ on-the-rise

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="http://www.omg.org/spec/BPMN/20100524/MODEL"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"    xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI"    typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"    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. 

1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

There will be a stack trace, please add it to the thread.

Thanks,

Greg