ruoyi-vue-nocode/ruoyi-ui/ruoyi-bpmnjs/resources/properties-panel/provider/bpmn/parts/implementation/MessageEventDefinition.js

27 lines
819 B
JavaScript
Raw Normal View History

2022-08-11 16:10:41 +08:00
'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
}));
};