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: add a method to only get BPMN semantic of elements by kind #2841

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

tbouffard
Copy link
Member

Complement the existing method that also retrieves DOM information. This simplifies the API usage and reduce the amount of retrieved data when the caller only needs to get the information from the model.

In addition:

  • Simplify the existing getElementsByKinds implementation: use a flat array instead of an array of array. This is then also consistent with the implementation of the new method.
  • Use the new API in demo to simplify the code.
  • Rework the existing JSDoc for consistency

closes #2813

Complement the existing method that also retrieves DOM information. This simplifies the API usage and reduce the amount
of retrieved data when the caller only needs to get the information from the model.

In addition:
  - Simplify the existing `getElementsByKinds` implementation: use a flat array instead of an array of array. This
  is then also consistent with the implementation of the new method.
  - Use the new API in demo to simplify the code.
  - Rework the existing JSDoc for consistency
@tbouffard tbouffard added enhancement New feature or request BPMN diagram usability Something about the way we can interact with BPMN diagrams labels Aug 31, 2023
@github-actions
Copy link

github-actions bot commented Aug 31, 2023

♻️ PR Preview bcd6c37 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Aug 31, 2023

♻️ PR Preview bcd6c37 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard changed the title feat: add a method to only get BPMN semantic of elements by kind (#2837) feat: add a method to only get BPMN semantic of elements by kind Aug 31, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@tbouffard tbouffard marked this pull request as ready for review August 31, 2023 10:01
@tbouffard tbouffard requested a review from csouchet August 31, 2023 10:01
@tbouffard tbouffard merged commit 5190882 into master Aug 31, 2023
25 checks passed
@tbouffard tbouffard deleted the feat/elements_registry_add_getModelElementsByKinds branch August 31, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN diagram usability Something about the way we can interact with BPMN diagrams enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Add new methods to only retrieve the BPMN semantic of elements in the model
2 participants