called-element-required.js
403 Bytes
const {
is
} = require('bpmnlint-utils');
/**
* Rule that reports manual tasks being used.
*/
module.exports = function () {
function check(node, reporter) {
if (is(node, 'bpmn:CallActivity')) {
if (!node.calledElement) {
reporter.report(node.id, '必须选择外部子流程');
}
}
}
return {
check: check
};
};