See that diagram fails to create; the log reports an (uncaught) exception:
Error: command required
at CommandStack.execute (CommandStack.js:178:1)
at index.esm.js:1851:1
at forEach (index.esm.js:246:1)
at MultiCommandHandler.preExecute (index.esm.js:1850:1)
at CommandStack._internalExecute (CommandStack.js:438:1)
at CommandStack.execute (CommandStack.js:186:1)
at applyDefaultTemplates (applyDefaultTemplates.js:30:1)
at PlatformBpmnModeler.invoke (index.esm.js:226:1)
at BpmnEditor.handleImport (BpmnEditor.js:382:1)
at BpmnEditor.importXML (BpmnEditor.js:577:1)
Describe the bug
Camunda Modeler 5 does not create a new diagram if a default template for a process is defined. The same behavior works in Camunda Modeler v4.x.
Steps to reproduce
Configure a C7 default template for
bpmn:Process
See that diagram fails to create; the log reports an (uncaught) exception:
Expected behavior
isDefault
template. :arrow_right: https://github.com/camunda/camunda-modeler/pull/3690Environment
Additional context
Reported via SUPPORT-17420.