Bpmn modeler namespace problem


#1

Hello all,

I’m using Viewer with camunda extensions, but have a problem with colorizing shape.

I use next options to create Viewer -

const DEFAULT_VIEWER_OPTIONS = {
    container: 'BpmnCanvas',
    additionalModules: [
        minimap,
        camundaPropertiesProvider
    ],
    moddleExtensions: {
        my: myModdleDescriptor,
        camunda: camundaModdleDescriptor
    }
};

But I have error Error: Unbound namespace prefix: “bioc”.

I use next attributes for the bpmndi:BPMNShape tag

bioc:fill="#BBDEFB"
bioc:stroke="#1E88E5"

Thank you!


#2

Use the attributes without the bioc:. Like so:

<bpmndi:BPMNShape id="_BPMNShape_StartEvent_1" bpmnElement="StartEvent_1" fill="ff0000" stroke="#00ff00">


#3

It works! Thank you for the very quick answer