Comments (7)
对比bpmn-moddle里的json文件,貌似在package\designer\plugins\descriptor\camundaDescriptor.json
少了对TimerEventDefinition的描述(下边的JSON代码),加上之后window.bpmnInstances.modeling.updateModdleProperties
更新属性XML没有变化
{ "name": "TimerEventDefinition", "superClass": [ "EventDefinition" ], "properties": [ { "name": "timeDate", "type": "Expression", "xml": { "serialize": "xsi:type" } }, { "name": "timeCycle", "type": "Expression", "xml": { "serialize": "xsi:type" } }, { "name": "timeDuration", "type": "Expression", "xml": { "serialize": "xsi:type" } } ] }
from bpmn-process-designer.
论坛里有一个类似场景的,但是没解决问题
https://forum.bpmn.io/t/cannot-create-bpmn-timedate-within-intermediatecatchevent/3132
from bpmn-process-designer.
我曾尝试通过window.bpmnInstances.moddle.create("bpmn:boundaryEvent") 或者window.bpmnInstances.moddle.create("bpmn:timerEventDefinition")这种方式创建
创建新元素或者属性时,传递的类型名参数应该是大写驼峰形式,比如 moddle.create("bpmn:BoundaryEvent")
。
另外,如果属性与该项目中的 descriptor.json 内的描述不一致,可以更新为你需要的格式,或者重新添加新的描述文件来对原有类型进行补充说明。
from bpmn-process-designer.
我曾尝试通过window.bpmnInstances.moddle.create("bpmn:boundaryEvent") 或者window.bpmnInstances.moddle.create("bpmn:timerEventDefinition")这种方式创建
创建新元素或者属性时,传递的类型名参数应该是大写驼峰形式,比如
moddle.create("bpmn:BoundaryEvent")
。另外,如果属性与该项目中的 descriptor.json 内的描述不一致,可以更新为你需要的格式,或者重新添加新的描述文件来对原有类型进行补充说明。
对descriptor.json描述感觉跟bpmn-camunda-moddle里的一样,尝试加了报错,目前也不太清楚descriptor.json的规则,已经求助官方社区了,求助地址
from bpmn-process-designer.
xml 描述文件规则可以看这个 https://juejin.cn/post/6912331982701592590 。你可以通过原生的 camunda 侧边栏编辑对应属性,之后查看元素的 businessObject 属性对象。对内部的每一个原型为 ModdleElement 的属性,都需要通过 moddle.create 进行创建,之后再更新到目标元素上
from bpmn-process-designer.
谢谢大兄弟,已赞赏~
from bpmn-process-designer.
😊谢谢
from bpmn-process-designer.
Related Issues (20)
- 请问大佬可以出一个vue3.0 + element-plus版本的吗? HOT 3
- 新建形状元素修改类型后添加扩展属性无效
- 请问<servicetask>的属性怎么添加? HOT 3
- 作者有计划升级到element-plus吗 HOT 1
- 导出的xml没有格式化,都在一行
- 重构的v2分支版本,用户任务该怎么添加节点审批用户呢 HOT 1
- 子流程不能返回
- 生成的svg怎么调整宽高啊 HOT 1
- 数据回显问题 字体样式出现问题 鼠标移入流程图 又恢复了 请问是什么问题 HOT 3
- 请问bpmn.js如何修改流程的targetNamespace
- 流程引擎选择了 flowable 但是导出的json文件 没有变化, 请楼主看过来 HOT 1
- 页面报错
- 导入流程文件报错 HOT 2
- 你好我刚启动的时候爆Process is missing end event Process is missing start event Process is missing task node 进程缺少结束事件进程缺少开始事件进程缺少任务节点。 HOT 1
- 线的条件设置要怎么配?
- 并行为什么一定要有两个呢,'Flow splits implicitly': '流隐式拆分', HOT 3
- 没有用户配置选项
- 请问如何删除Palette中不需要的工具 HOT 2
- 生成的xml中 莫名的出现个 = HOT 2
- 如何设置bpmn的节点与线有默认的名称?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpmn-process-designer.