ruoyi-vue-nocode/ruoyi-ui/ruoyi-bpmnjs/resources/properties-panel/provider/bpmn/parts/implementation/SignalEventDefinition.js
2022-08-11 16:10:41 +08:00

27 lines
808 B
JavaScript

'use strict';
var eventDefinitionReference = require('./EventDefinitionReference'),
elementReferenceProperty = require('./ElementReferenceProperty');
module.exports = function(group, element, bpmnFactory, signalEventDefinition, translate) {
group.entries = group.entries.concat(eventDefinitionReference(element, signalEventDefinition, bpmnFactory, {
label: translate('Signal'),
elementName: 'signal',
elementType: 'bpmn:Signal',
referenceProperty: 'signalRef',
newElementIdPrefix: 'Signal_'
}));
group.entries = group.entries.concat(elementReferenceProperty(element, signalEventDefinition, bpmnFactory, {
id: 'signal-element-name',
label: translate('Signal Name'),
referenceProperty: 'signalRef',
modelProperty: 'name',
shouldValidate: true
}));
};