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

[FIX] Don't store 'edge without bpmn element' in the BpmnModel #1113

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

tbouffard
Copy link
Member

This is invalid and was not homogeneous with BPMN Shape that are not stored when
we don't get the bpmn element.
In addition, this can produced errors in client code as the bpmn element is not
supposed to be undefined.

A dedicated test has been added to manage this use case and parsing tests
that were relying on this 'hole' have been updated to use valid edge
BPMN sources (mainly tests about edge labels).

This is invalid and was not homogeneous with BPMN Shape that are not stored when
we don't get the bpmn element.
In addition, this can produced errors in client code as the bpmn element is not
supposed to be `undefined`.

A dedicated test has been added to manage this use case and parsing tests
that were relying on this 'hole' have been updated to use valid edge
BPMN sources (mainly tests about edge labels).
@tbouffard tbouffard added bug Something isn't working BPMN support Something about the BPMN specification that the lib is already supporting or will support labels Feb 16, 2021
@tbouffard
Copy link
Member Author

This has been detected when implementing #1115

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

this.convertedElements.findMessageFlow(edge.bpmnElement) ||
this.convertedElements.findAssociationFlow(edge.bpmnElement);

if (!flow) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@csouchet csouchet merged commit e5a166a into master Feb 17, 2021
@csouchet csouchet deleted the fix/do_not_store_edge_with_bpmn_element_in_model branch February 17, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN support Something about the BPMN specification that the lib is already supporting or will support bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants