The new activi not found in the old version of the activitirestapplication provided in the introduction (at least I did not find), so directly from the SPRINGMVC for the Diagram Viewer to provide services, but also good to understand diagram How the viewer works.
First, download the corresponding version in the http://www.activiti.org/
In the official ZIP file (available from www.activiti.org/download.html download) There is a activiti-explorer.war file, unzip the file, copy the diagram-viewer Copy to the project in .
Copy modules\activiti-diagram-rest The following Java source files into the project source file.
You can modify the requestmapping path alternate in the source file, The default path is:
@RequestMapping (value= "/service/process-definition/{processdefinitionid}/diagram-layout", method = Requestmethod.get, produces = "Application/json")
Modify the index.html in Diagram-viewer
.= { : + , : + , : + };
Modify the path to the corresponding action path.
http://server_url/diagram-viewer/index.html?processDefinitionId=Processdefinitionid}& processinstanceid={Processinstanceid}
Note: The return format required by Diagram-viewer is JSONP, which requires the SPRINGMVC environment to configure the JSONP itself (how to configure self-search).
Springmvc+activi 5.18 Integrated diagram Viewer tracking process