bpmnlint-plugin-custom-messages

1.0.1 • Public • Published

bpmnlint-plugin-custom-messages

An custom bpmnlint plug-in to report messages from bpmn-js elements

About

This plugin only has two rules by default: error-message and warning-message which report the correspoing message using bpmn-js-bpmnlint.

In order to show a message set a string in the property node.businessObject.customErrorMessage or node.businessObject.customWarningMessage where node is a bpmn-js element.

Also set the plugin in the .bpmnlintrc file:

{
  "extends": [
    "bpmnlint:recommended",
    "plugin:custom-messages/recommended"
  ],
  "rules": {
    "custom-messages/error-message": "error",
    "custom-messages/warning-message": "warn"
  }
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i bpmnlint-plugin-custom-messages

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

4.15 kB

Total Files

8

Last publish

Collaborators

  • marcochavezf