ruoyi-vue-nocode/ruoyi-ui/ruoyi-bpmnjs/resources/properties-panel/provider/activiti/parts/FieldInjectionProps.js

22 lines
581 B
JavaScript
Raw Normal View History

2022-08-11 16:10:41 +08:00
'use strict';
var ImplementationTypeHelper = require('../../../helper/ImplementationTypeHelper');
var fieldInjection = require('./implementation/FieldInjection');
module.exports = function(group, element, bpmnFactory, translate) {
var bo = ImplementationTypeHelper.getServiceTaskLikeBusinessObject(element);
if (!bo) {
return;
}
var fieldInjectionEntry = fieldInjection(element, bpmnFactory, translate, { businessObject: bo });
if (fieldInjectionEntry && fieldInjectionEntry.length > 0) {
group.entries = group.entries.concat(fieldInjectionEntry);
}
};