[BUG] Extra parsing of lane
elements which are not in the BPMN spec
#2188
Labels
BPMN support
Something about the BPMN specification that the lib is already supporting or will support
bug
Something isn't working
good first issue
Good for newcomers
hacktoberfest
Can be done during the Hacktoberfest
Milestone
Describe the bug
Currently, in bpmn-visualization@0.26.0, we parse the
Lane
from aLaneSet
and from aProcess
directly. (See theProcessConverter
https://github.com/process-analytics/bpmn-visualization-js/blob/v0.26.0/src/component/parser/json/converter/ProcessConverter.ts#L95)However according to the BPMN specification,
Lane
lane is defined only within aLaneSet
.So, the
Lane
s are not parsed correctly.To Reproduce
Steps to reproduce the behavior:
lane
directly inprocess
and nolaneset
)Expected behavior
The lane should be not displayed, and we should have a warning/error for the bad format.
Desktop (please complete the following information):
Additional context
If we remove the bad parsing, there is:
BPMN Specification

When a `Lane` is defined it is contained within a `LaneSet`, which is contained within a `Process`.ℹ️ For more information: https://www.omg.org/spec/BPMN/2.0.2/PDF
The text was updated successfully, but these errors were encountered: