bpmn-io / bpmn-js-bpmnlint Goto Github PK
View Code? Open in Web Editor NEWA bpmnlint plug-in for bpmn-js.
License: MIT License
A bpmnlint plug-in for bpmn-js.
License: MIT License
Hello!
Describe the Bug
Schema errors not displayed
Steps to Reproduce
import { Linter } from 'bpmnlint'; import linterConfig from './packed-config'; import lintModule from 'bpmn-js-bpmnlint'; import Modeler from 'bpmn-js/lib/Modeler';
if you remove the style of stretching in height, a button appears
Environment
Is your feature request related to a problem? Please describe
Relates to this rule: https://github.com/bpmn-io/bpmnlint/blob/master/docs/rules/no-bpmndi.md
It might occur that an error or warning relates to an element without visual representation (e.g., because it has none (bpmn:DataObject) or it has missing bpmndi (see the rule linked above)).
In this case, the error/warning is only visisble in the summary overlay, but can not be inspected by hovering over an element.
Describe the solution you'd like
In case that a error/warning can not be displayed directly with the element (see reasons above), it shall "bubble up" to the next appropriate element.
Describe alternatives you've considered
Alternateively: we could not let it "bubble up" but simply use the root element of the entire diagram.
Additional context
n/a
Considering that bpmnlint is version 8, please update the version number and peerDependencies section.
[email protected] is out and it is awesome. We should see if we can integrate it. ๐ต
Describe the Bug
Error/Warning svgs will auto shrink randomly because .bjsl-issues
is set to display: flex
;
Expected Behavior
Svg icons should have fixed size.
Fix
I made a PR: #25
Is your feature request related to a problem? Please describe
In collaboration diagrams we usually treat expanded participants like the process it is connected to, interaction wise. With #29 merged we have the potential to better support this special case, too.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Current behavior (as of v0.17.0
): Note that the process error is shown on the root, rather than the participant, which would be my expected position to display it.
Describe the Bug
I followed the instructions to add bpmn-js-bpmnlint to the example project properties-panel-extension. This results in the following error:
>> SyntaxError: /home/adrian/workspace/condat/ZDF-BPMN/bpmn-js-examples/properties-panel-extension/node_modules/bpmnlint/lib/linter.js: Unexpected token (62:8) while parsing file: /home/adrian/workspace/condat/ZDF-BPMN/bpmn-js-examples/properties-panel-extension/node_modules/bpmnlint/lib/linter.js
I presume this is some sort of dependency conflict, but if so it would be nice to see incompatibilities / requirements mentioned under usage.
Steps to Reproduce
npm install
grunt auto-build
Expected Behavior
Either the build should run without errors or the usage instructions should mention the package / version that is conflicting or missing here.
Environment
Is your feature request related to a problem? Please describe
Issues like bpmn-io/bpmnlint#40 make the interesting case of a problem being there but mostly temporarily. In these cases, it is probably still worth to show feedback, however in a less "urgent" manner.
One idea to explore is to make the plug-in always lint and toggle showing overlays when pressing the lint controls โฌ๏ธ only.
Describe the solution you'd like
Describe alternatives you've considered
Do not change anything.
Right now lint rules are hard-coded via this configuration file.
Tasks
Vite+bpmn-js+bpmn-js-bpmnlint cause runtime error
Uncaught (in promise) TypeError: ruleFactory is not a function
at bpmn-js-bpmnlint.js?v=5597bdc5:188:46
import lintModule from 'bpmn-js-bpmnlint'
...
const modeler = new Modeler({
container: modelerRef,
additionalModules: [
...,
lintModule
]
})
...
The lint module works
Given this config:
var LINTER_CONFIG = {
"extends": "bpmnlint:all",
"rules": {
"label-required": 1,
"start-event-required": 2,
"end-event-required": 2
}
};
Issues show up twice:
{
category: "error",
id: "Participant_1t4x716",
message: "is missing label/name",
rule: "bpmnlint/label-required"
}, {
category: "warn",
id: "Participant_1t4x716",
message: "is missing label/name",
rule: "label-required"
}
@nikku Shouldn't the inherited one be overridden?
Tasks
TL;DR: While the modeler is showing that there are some errors in a BPMN, it doesn't show the text of the errors when hovering.
I'm using the modeler layout from bpmn-js-examples, which allows me to see and create BPMN files. Then, I've added bpmn-js-bpmnlint, because I need to see the errors that are in the diagram. I've followed the steps from the bpmn-js-bpmnlint, and the result is that, while it shows the correct number of errors, when I hover the error, the message is empty.
I've created a repro, if this helps: bpmn-editor.
In the repro, I've commented with an asterisk (*) the lines in src/app.js
and webpack.config.js
I've added that were not in the modeler base, the lines I've added to add bpmnlint.
With the repro, the steps are the following ones:
git clone https://github.com/Tupiet/bpmn-editor.git
cd bpmn-editor
npm install
npm run dev
I would expect to see the text of the errors.
Finally, thanks for this amazing library! Feel free to ask me for more details if you need it.
Describe the Bug
This bug occurs when a user navigates to a location of the BPMN designer where the flow elements container (djs-overlay-container) is out of view.
I have also noticed that this (form elements container) can also overlap a diagram which is confusing to the users.
This means that a user may have solved all errors and warnings visible but will still see that there are errors or warnings left. In this case they cannot see what the errors or warnings are.
I noticed that the errors / warnings sit in and djs-overlay-container and are always in the same location, unless the errors / warnings are attached to an element in the diagram.
Steps to Reproduce
I can reproduce the error with the playground project.
Expected Behavior
The flow elements container errors/warnings should always be visible, regardless where the diagram is placed on the canvas.
Environment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.