Hi, Here is my code for colouring an element in BpmnModeler.
The elementRegistry works fine, but elementRegistry.get does not…
The code
const elementRegistry = modeler.get("elementRegistry");
console.log('elementRegistry',elementRegistry)
const startEvent = elementRegistry.get('Activity_1iadx4f');
console.log("startEvent", startEvent )
the element registry by chrome inspect
The error
As you can see, the start event is undefined even when Id is correct.
why is this error occuring?
Sorry if the format or details of question are not upto the mark, if needed any extra details i will update.
Thank you