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 id #2837

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Aug 29, 2023

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.

Use the new API in demo to simplify the code.

covers #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.
@tbouffard tbouffard added enhancement New feature or request BPMN diagram usability Something about the way we can interact with BPMN diagrams labels Aug 29, 2023
@github-actions
Copy link

github-actions bot commented Aug 29, 2023

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

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Aug 29, 2023

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

🤖 By surge-preview

@sonarqubecloud
Copy link

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 29, 2023 13:48
@tbouffard tbouffard requested a review from csouchet August 29, 2023 13:48
@tbouffard tbouffard merged commit 9990939 into master Aug 29, 2023
@tbouffard tbouffard deleted the feat/elements_registry_add_getModelElementsByIds branch August 29, 2023 15:13
tbouffard added a commit that referenced this pull request Aug 31, 2023
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
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.

2 participants