如何将 SVG xml 转换为 BPMN2.0 xml
How do i convert this sample SVG to BPMN xml?
<svg height="100%" width="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"><desc>Created with Raphaël</desc>
<defs></defs>
<circle stroke-width="5" font-size="91px" style="font-size: 91px;" stroke="#000000" fill="#00ff00" r="20" cy="88" cx="107"></circle>
<circle stroke-width="5" font-size="92px" style="font-size: 92px;" stroke="#000000" fill="#ff0000" r="20" cy="88" cx="271"></circle>
<path stroke-width="5" d="M128,88C189,88,189,88,250,88" stroke="#ffffff" fill="none"></path>
<path d="M128,88C189,88,189,88,250,88" stroke="#000000" fill="none"></path>
</svg>
How do i convert this sample SVG to BPMN xml?
<svg height="100%" width="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"><desc>Created with Raphaël</desc>
<defs></defs>
<circle stroke-width="5" font-size="91px" style="font-size: 91px;" stroke="#000000" fill="#00ff00" r="20" cy="88" cx="107"></circle>
<circle stroke-width="5" font-size="92px" style="font-size: 92px;" stroke="#000000" fill="#ff0000" r="20" cy="88" cx="271"></circle>
<path stroke-width="5" d="M128,88C189,88,189,88,250,88" stroke="#ffffff" fill="none"></path>
<path d="M128,88C189,88,189,88,250,88" stroke="#000000" fill="none"></path>
</svg>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
BPMN XML 是一种用于表示业务流程语义的 XML 模式,可以映射到图形可视化。 SVG 表示绘图表面上的“墨迹”,并且不包含超出墨迹所在位置的语义信息。
在您的示例 XML 中,您有几个圆圈和两条路径...转换器如何知道该墨水表示什么特定的 BPMN 语义构造?此任务让人想起 OCR,但要复杂得多,因为文本基本上是一维符号流,但绘图是二维的。
我怀疑你会找到任何可以做到这一点的东西。也许如果你解释一下你真正想要实现的目标......?
BPMN XML is an XML schema for representing the semantics of a business process, which can be mapped to a graphical visualization. SVG represents "ink" on a drawing surface and contains no semantic information beyond where the ink goes.
In your example XML you have a couple of circles and two paths... how would a converter know what particular BPMN semantic construct is represented by that ink? This task is reminescent of OCR but much more complex, as text is basically a one-dimensional stream of symbols but a drawing is two-dimensional.
I doubt you'll find anything that can do this. Maybe if you explained what you're really trying to accomplish...?
http://pi.informatik.uni-siegen.de/qudimo/bpmn/ conversion/
该工具将 svg json 模型转换为 bpmn 2 emf 元模型模型。符合标准 BPMN 2 序列化
http://pi.informatik.uni-siegen.de/qudimo/bpmn/transformation/
This tool converts svg json models to bpmn 2 emf metamodel models. Which are compliant with the standard BPMN 2 serialization
BPMN Sketch Miner https://www.bpmn-sketch-miner.ai/ 工具将流程模型的文本描述转换为 SVG 和 BPMN/XML 中的可视化表示。
The BPMN Sketch Miner https://www.bpmn-sketch-miner.ai/ tool converts textual descriptions of process models to their visual representation both in SVG and BPMN/XML.