问题
I want to provide a WYSIWYG tool, preferably JavaScript based, for workflow diagramming (i.e. directed graphs). I need commercial software friendly licensing, which can include paying a fee to OEM. If there's a necessary server side piece I'd need it in Java or ColdFusion because I'm integrating with an existing product.
My workflow graphs can have more than one start vertex, but only one end vertex, and edges are directed. Beyond WYSIWYG editing, I'm looking for a tool that can assist with the following:
- Ability to export the drawing so it can be:
- persisted
- parsed by a programming language (I'm assuming XML, but other formats are just fine).
- edited again (preserving layout information)
- Associate arbitrary data with edges and vertices including ability to define view/edit panes.
Nice to have:
- Detection if any vertices are unable to reach the end.
- Automatically layout vertices and edges if no plotting information is provided.
I've looked at mxGraph, which seems promising, but am hoping an answerer here can provide some additional direction before I jump down the rabbit hole.
回答1:
Have you checked out the JavaScript InfoVis Toolkit yet (http://thejit.org/)? It might not have everything you need, but it does force-directed graph layouts, and allows interactive editing. Since it's rendering into a JavaScript canvas, you should be able to save the results as an image file.
Here are some demos of the graph-layout functionality: http://thejit.org/static/v20/Jit/Examples/ForceDirected/example2.html
回答2:
Try Oryx and share your experiences. Features
- open source
- web based as well as desktop
- java script based UI with plugins. since its just java sccript, I am assuming you can embed it.
- supports export/import to/from BPMN 2.0
- supports embeddable view i.e. provides mashup api
NOTE: Please share your experiences as I am on the same boat as you. we can help each other. I am also tagging this question with "oryx" so that all the experiences can be aggregated into this tag
来源:https://stackoverflow.com/questions/4596840/workflow-i-e-directed-graph-browser-based-editors