- Extend the element templates module
- Use the create/append pattern for Camunda 7 Element Templates
- You can try this out with the Miranum Modeler within
VS Code
Note: This plugin extends the bpmn-js plugins for element templates and create/append anything.
Example created with the VS Code Plugin `Miranum Modeler`
npm install @miragon/miranum-create-append-element-templates
// Import element templates
import {
ElementTemplatesPropertiesProviderModule
} from 'bpmn-js-element-templates';
// Import create/append anything
import {
CreateAppendAnythingModule,
CreateAppendElementTemplatesModule
} from 'bpmn-js-create-append-anything';
import { ExtendElementTemplates } from '@miragon/miranum-create-append-c7-element-templates'
const modeler = new BpmnModeler({
additionalModules: [
...,
ElementTemplatesPropertiesProviderModule,
ExtendElementTemplates,
CreateAppendAnythingModule,
CreateAppendElementTemplatesModule,
]
});