Bpmnlint not working as expected

@nikku , @barmac @philippfromme @Niklas_Kiefer

I am trying to use Bpmnlint for error finding but it not working as expected .

The issue is it shows the error firstTime but it doesn’t update as soon as some of it solved.

It works perfectly after one re-render and keeps updating the errors as they are solved


import BpmnModeler from "bpmn-js/lib/Modeler";
import "bpmn-js-bpmnlint/dist/assets/css/bpmn-js-bpmnlint.css";
import bpmnlintConfig from "../../../bundled-config";

let modeler = {
      container: "#bpmnview",
      propertiesPanel: {
        parent: "#js-properties-panel",
      },
      linting: {
        bpmnlint: bpmnlintConfig,
        active: true,
      },
      additionalModules: [
        lintModule,
        BpmnPropertiesPanelModule,
        BpmnPropertiesProviderModule,
        propertiesCustomProviderModule,
        minimapModule,
        TokenSimulationModule,
        {
          elementColors: [
            "value",
            {
              add() {},
              remove() {},
            },
          ],
        },
      ],
      moddleExtensions: {
        camunda: camundaModdleDescriptor,
      },
    };
    bpmnModeler = new BpmnModeler({ ...modeler });

This is my code for .bpmnlintrc

{
    "extends": "bpmnlint:recommended"
}

I have install bpmn-js-bpmnlint and bpmnlint-pack-config packges.

Could you please help me out here?

What is the error?

Please share a running / prototypical example that clearly shows what you’re trying to achieve, what is working and what is not.

Use our existing starter projects to quickly hack it or share your existing, partial solution on GitHub or via a CodeSandbox. Provide the necessary pointers that allow us to quickly understand where you got stuck.

This way we may be able to help you in a constructive manner.

Thanks :heart:

1 Like

Hello @barmac

Thanks for the reply .
Although I figured out how to make the bpmnlint work I would like to know what to do have all the rules of the camunda modeler

For example ,
When in camunda modeler, a script task is added and there is no inplemenation it shows the error

A must have a defined

Similarly in a User Task when there is no form it shows an warning

A should have a defined

How do I achieve this ?

Is there any package to install ?

Currently my .bpmnlintrc file is like this

{
    "extends": "bpmnlint:recommended"
}

For Camunda compatibility rules, check out GitHub - camunda/bpmnlint-plugin-camunda-compat: A bpmnlint plug-in for Camunda BPMN compatibility.

Camunda Modeler itself uses camunda/linting project which adjusts the configuration to the diagram’s execution platform.

1 Like