Skip to content

[FEAT] In Plugins exposing API with "names parameters", provide a way to filter/deduplicate elements related to names #319

@tbouffard

Description

@tbouffard

Is your feature request related to a problem? Please describe.

The existing StyleByNamePlugin relies on the getElementsByNames method of BpmnElementsSearcher to get the elements related to names using what has been introduced in #134.
But currently, it doesn't allow to deduplicate the elements that match the same name as this is possible to do in getElementByName method (https://github.com/process-analytics/bpmn-visualization-addons/blob/09b0e545706badfaab38cd1f5c49c963c7bdc53b/packages/addons/src/bpmn-elements.ts#L62C3-L62C19)

Describe the solution you'd like

Provide a way in the plugin to filter or deduplicate elements.
This could be a configuration of the plugin itself (done when instantiating the plugin and configured with the BpmnVisualization configuration) or a parameter of the methods of the plugin.
This has to be decided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions