no-manual-task.js 331 B

123456789101112131415161718192021
  1. const {
  2. is
  3. } = require('bpmnlint-utils');
  4. /**
  5. * Rule that reports manual tasks being used.
  6. */
  7. module.exports = function() {
  8. function check(node, reporter) {
  9. if (is(node, 'bpmn:ManualTask')) {
  10. reporter.report(node.id, 'Element has disallowed type bpmn:ManualTask');
  11. }
  12. }
  13. return {
  14. check: check
  15. };
  16. };