What is diffirent between endEvent without message( error ...) and endEvent with message


#1

i use this method to get elements.

 eventBus.on('element.dblclick', 1500, function (event) {
        console.log(event.element, 'on');
    });

but i dont see any diffirence between this two elemnt
first without message

{
“label”: {
“children”: [],
“type”: “label”,
“width”: 90,
“height”: 18,
“id”: “EndEvent_1cvpmzd_label”,
“hidden”: true,
“x”: 348,
“y”: 103
},
“children”: [],
“id”: “EndEvent_1cvpmzd”,
“width”: 36,
“height”: 36,
“type”: “bpmn:EndEvent”,
“collapsed”: false,
“x”: 375,
“y”: 66
}

endEvent with message

{
“label”: {
“children”: [],
“type”: “label”,
“width”: 0,
“height”: 18,
“id”: “EndEvent_18aaak4_label”,
“hidden”: true,
“x”: 508,
“y”: 134
},
“children”: [],
“id”: “EndEvent_0q6vi57”,
“width”: 36,
“height”: 36,
“type”: “bpmn:EndEvent”,
“x”: 536,
“y”: 98,
“order”: {
“level”: 1
}
}

but i dont see any diffirent between this two element.
is there any way to know wich one is end event with message.

i already know there is “messageEventDefinition” in object property for that
but when i want update it with “modeling.updateProperties” , just create new property named “_messageEventDefinition” and “messageEventDefinition” dosent changed