defaultBpmnXml.ts 960 B

123456789101112131415
  1. export default function defaultBpmnXml(key: string, name: string, category: string) {
  2. return `<?xml version="1.0" encoding="UTF-8"?>
  3. <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  5. xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
  6. xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
  7. typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
  8. targetNamespace="${category}">
  9. <process id="${key}" name="${name}" isExecutable="true"></process>
  10. <bpmndi:BPMNDiagram id="BPMNDiagram_1">
  11. <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${key}">
  12. </bpmndi:BPMNPlane>
  13. </bpmndi:BPMNDiagram>
  14. </definitions>`;
  15. }