Files
his/openhis-ui/bpmnlint-plugin-local/rules/no-manual-task.js
guorui dad6d41cbc 1
2025-02-19 10:29:04 +08:00

21 lines
331 B
JavaScript

const {
is
} = require('bpmnlint-utils');
/**
* Rule that reports manual tasks being used.
*/
module.exports = function() {
function check(node, reporter) {
if (is(node, 'bpmn:ManualTask')) {
reporter.report(node.id, 'Element has disallowed type bpmn:ManualTask');
}
}
return {
check: check
};
};