Hello, how could you help me? I am instantiating bpmn.js and in its properties is not the type_task or in its configuration of bpmn.io I do not know if this configuration changed
var self=this;
self.bpmnJS.on('commandStack.shape.create.postExecuted', function(event) {
var element = event.context.shape;
console.log(element);
self.element_old = element;
self.setColorElementBpmn(element, 'white', element.type);
var modeler =self.bpmnJS;
modeler.type_task_bpmn=[];
const type_tasks = modeler.type_task_bpmn.concat(type_start_end_procces);
console.log(modeler);
const element_actual = type_tasks.find(task_bpmn => task_bpmn.id == element.type);
if (element_actual) {
var modeling = this.bpmnJS.get('modeling');
modeling.setColor(element, {
stroke: element_actual.color,
fill: 'white',
});
}