01-30-2017 09:27 PM
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" xmlnsmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsmgdi="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.
01-31-2017 05:52 AM
Explore our Alfresco products with the links below. Use labels to filter content by product module.