Springmvc+activi 5.18 Integrated diagram Viewer tracking process

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.