Closed roeyilan closed 4 years ago
Thanks for reporting. Mind you sharing your code inside CodeSandbox in a way that we can inspect it? Btw. the forum would be an even better place for questions like this.
I'm closing this due to inactivity. Please feel free to re-open once you have a specific feature request or bug report.
Hi,
I'm working on a BPMN file generator on the back-end side based on customer data.
I managed to create start event, tasks and end event. And now I'm having trouble connecting them with a sequence flow.
Here's a POC code:
`const BpmnModdle = require('bpmn-moddle'); const fs = require('fs');
exports.buildSimpleBpmnDiagram = async (processName, tasks) => { const moddle = new BpmnModdle();
};
function fromFile(moddle, file) { return fromFilePart(moddle, file, 'bpmn:Definitions'); }
function fromFilePart(moddle, file, type) { const fileContents = readFile(file); return moddle.fromXML(fileContents, type); }
function readFile(filename) { return fs.readFileSync(filename, {encoding: 'UTF-8'}); } `
I did not manage to add the "outgoing"/"ingoming" properties to the tasks And I did not manage to add the "waypoint" to the sequence shape.
Please assist, Thanks