Library for rendering BPMN 2.0 in a browser

雨燕双飞 提交于 2019-12-20 08:29:29

问题


For a science project I'd need to render/display a BPMN 2.0 model in a web browser. Are there any libraries available to only render the diagram? (I don't need to edit it or do anything other than displaying it). Bonus points if said library is also able to render/display petri nets.

The solution should be open source.

Thanks!


回答1:


Activiti

http://activiti.org/

  • pretty advanced
  • Java
  • developed by several vendors, e.g. http://signavio.com (free for university use: http://academic.signavio.com/ ) - the mentioned Red Hat jBPM product seems to build upon activiti as well.

Oryx

http://code.google.com/p/oryx-editor/

  • discontinued, Activiti is the successor

Rigrr

http://rapilabs.com/software/rigrr

  • Simple (html, js)
  • alpha
  • new (2012)

WAPAMA

http://www.wapama.net/

  • development stale
  • pre alpha

JUNG

http://jung.sourceforge.net/

  • flexible
  • java
  • ugly Java Browser Plugin required

ps: You question in very vague. e.g. you should let us know what kind of Library are you looking for? What is your coding envoironment?




回答2:


There is a package called bpmn-js from bpmn.io that is open sourced. It can be found here:

http://bpmn.io/blog/posts/2014-bpmn-js-viewer-is-here.html




回答3:


With little effort you can create your own renderer. The blog post http://www.pleus.net/blog/?p=2142 explains how to do it.




回答4:


The camunda BPMN rendering library: https://github.com/camunda/camunda-bpmn.js You can see a demo here: http://camunda.org/share/




回答5:


The jBPM web-based editor (which currently has a dependency on guvnor, but that's being worked on) picks up where oryx left off. It's getting fairly mature, and the devs are quite responsive to bug reports/feature requests. You can output in PNG, PDF, and SVG formats.

http://surdilovic.wordpress.com/2012/04/10/jbpm-designer-version-2-1-released/




回答6:


https://github.com/dmitryfar/diagram-viewer Created for Activiti using REST. But you can just return jsons from you server for processdefinitions and etc. Based on RaphaëlJS.




回答7:


camunda-bpmn.js project is not active, you can try bpmn-io/bpmn-js and see a demo: http://demo.bpmn.io/




回答8:


Not that I know of.. it would be great to find one. If you take a look at the jBPM5 project you will find that there is an eclipse plugin to render BPMN2 models, we can extract the logic and create a rendering layer for web applications. When you mention "display in a browser" usually means a lot of things. Are you thinking in just a simple PNG? because the eclipse plugin already provide that export functionality. Cheers




回答9:


Exporting BPMN diagrams to SVG & XHTML was available in web based Oryx editor. But that project is discontinued. If you can build the source code and get Oryx Editor to work, you can manipulate the generated SVG via javascript.



来源:https://stackoverflow.com/questions/8295110/library-for-rendering-bpmn-2-0-in-a-browser

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!