[FEAT] Include links between edges and shapes in the internal model #2503
Labels
BPMN support
Something about the BPMN specification that the lib is already supporting or will support
enhancement
New feature or request
Milestone
Is your feature request related to a problem? Please describe.
In the semantic part of the BPMN diagram:
incoming
andoutgoing
attributes in the BPMN semantic.sourceRef
andtargetRef
attributes in the BPMN semantic.This information can help navigating in the graph/paths of the diagram.
Currently, in version 0.29.2, we store the source and target reference for flows. See https://github.com/process-analytics/bpmn-visualization-js/blob/v0.30.0/src/model/bpmn/internal/edge/flows.ts#L22-L24
But don't store this information for incoming/outgoing flows of flownodes. Having such information would leverage new features related to paths computation (see #930) or let users get more information for subsequent processing when retrieving a specific element via the existing API (see #929 and #2504).
Describe the solution you'd like
When parsing the diagram, retrieve the links between flownodes and flows and store them in the internal model.
As a first implementation, the shape-edge relationship will be described by providing the ids of the elements, not the objects.
This is what is needed to implement #2504.
The model is internal and not part of the public API. So, the way we provide the links may change at any time without prior notice.
Describe alternatives you've considered
This issue is mandatory for the implementation of several features that are needed to be able to support monitoring and path based use-cases.
Tasks
The text was updated successfully, but these errors were encountered: