【问题标题】:bpmn js - export svg to bpmn xmlbpmn js - 将 svg 导出到 bpmn xml
【发布时间】:2017-09-07 04:34:23
【问题描述】:

我尝试了多种方法将 svg 从建模器导出到 bpmn xml,但无法导出。 我尝试了以下方法

  1. modeler.moddle.toXML(modeler.get('canvas'), { format: true }, function (err, updatedXML) { console.log(updatedXML); });

  2. modeler.saveXML({ format:true },function(err,output){ if(err){ console.log(err); } else{ console.log(output); } });

  3. cli.save('bpmn'); - 它适用于浏览器控制台。

我总是得到这些:未定义或未加载定义。

请帮忙。

【问题讨论】:

  • 您使用的是哪个建模器?

标签: node.js xml express bpmn bpmn.io


【解决方案1】:

嗯,

主要问题是我的想法。 因为我来自同步的 PHP 类型语言的背景;所以即使我读到了平均堆栈异步性质,我也没有应用它。

后来我应用了相同的代码,它成功了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多