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" xmlns
mgdi="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.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.