Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tbouffard opened this issue Oct 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tbouffard
Copy link
Member

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.

@tbouffard tbouffard added the enhancement New feature or request label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant