Hi,
I am using the following code to allow editing Camunda-base workflows. It works fine with a modeler, but NOT with a viewer:
import * as BpmnJS from 'bpmn-js/dist/bpmn-modeler.production.min.js';
import camundaExtensionModule from 'camunda-bpmn-moddle/lib'
import camundaModdle from 'camunda-bpmn-moddle/resources/camunda.json'
[...]
bpmnJS = new BpmnJS({
additionalModules: [
customRenderer,
camundaExtensionModule,
],
moddleExtensions: {
camunda: camundaModdle
}
});
When I replace ‘modeler’ with ‘viewer’ in the 1st import, I get the following 2 errors:
Error: No provider for "moddleCopy"! (Resolving: camundaCopyPasteRootElementBehavior -> moddleCopy)
ERROR Error: Uncaught (in promise): Error: No provider for "moddleCopy"! (Resolving: camundaCopyPasteRootElementBehavior -> moddleCopy)
Error: No provider for "moddleCopy"! (Resolving: camundaCopyPasteRootElementBehavior -> moddleCopy)
Is there anything I can do to make Camunda extensions work with the viewer and not the modeler?
My goal is to have a web page of my application where a workflow can only be viewed. It should not be editable, and there should be no palette, among other restrictions.
Any suggestion will be welcome! Thank you!