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

24 lines
578 B
JavaScript

'use strict';
var entryFactory = require('../../../factory/EntryFactory'),
is = require('bpmn-js/lib/util/ModelUtil').is,
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
module.exports = function(group, element, translate) {
var bo = getBusinessObject(element);
if (!bo) {
return;
}
if (is(element, 'activiti:Initiator') && !is(element.parent, 'bpmn:SubProcess')) {
group.entries.push(entryFactory.textField({
id: 'initiator',
label: translate('Initiator'),
modelProperty: 'initiator'
}));
}
};