lyuxiaobo / lemon-workflow Goto Github PK
View Code? Open in Web Editor NEWA Business Process Management (BPM) platform based on flowable 6, vue 2, bpmn-js.
License: Apache License 2.0
A Business Process Management (BPM) platform based on flowable 6, vue 2, bpmn-js.
License: Apache License 2.0
When creating a new BPMN model the code above will use the model id (newId
, a UUID) as the key parameter to the blank xml function. It in turns uses it as an id for the bpmn2:process element and its reference from BPMNPlane.
This results in a modeller that doesn't allow to drop elements to its canvas.
The patch below makes the modeller work again.
diff --git a/lemon-workflow-frontend/package/process-designer/plugins/defaultEmpty.js b/lemon-workflow-frontend/package/process-designer/plugins/defaultEmpty.js
index 21c6343..bf4c9b9 100644
--- a/lemon-workflow-frontend/package/process-designer/plugins/defaultEmpty.js
+++ b/lemon-workflow-frontend/package/process-designer/plugins/defaultEmpty.js
@@ -15,10 +15,10 @@ export default (key, name, type) => {
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
id="diagram_${key}"
targetNamespace="${TYPE_TARGET[type]}">
- <bpmn2:process id="${key}" name="${name}" isExecutable="true">
+ <bpmn2:process id="process_${key}" name="${name}" isExecutable="true">
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
- <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${key}">
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="process_${key}">
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>`;
But I don't know if UUID are used elsewhere.
Here is the relevant ticket in bpmn-io ( bpmn-io/moddle-xml#41 )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.