27 lines
819 B
JavaScript
27 lines
819 B
JavaScript
'use strict';
|
|
|
|
var eventDefinitionReference = require('./EventDefinitionReference'),
|
|
elementReferenceProperty = require('./ElementReferenceProperty');
|
|
|
|
|
|
module.exports = function(group, element, bpmnFactory, messageEventDefinition, translate) {
|
|
|
|
group.entries = group.entries.concat(eventDefinitionReference(element, messageEventDefinition, bpmnFactory, {
|
|
label: translate('Message'),
|
|
elementName: 'message',
|
|
elementType: 'bpmn:Message',
|
|
referenceProperty: 'messageRef',
|
|
newElementIdPrefix: 'Message_'
|
|
}));
|
|
|
|
|
|
group.entries = group.entries.concat(elementReferenceProperty(element, messageEventDefinition, bpmnFactory, {
|
|
id: 'message-element-name',
|
|
label: translate('Message Name'),
|
|
referenceProperty: 'messageRef',
|
|
modelProperty: 'name',
|
|
shouldValidate: true
|
|
}));
|
|
|
|
};
|