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

external dependencies #217

Merged
merged 4 commits into from Sep 9, 2022
Merged

external dependencies #217

merged 4 commits into from Sep 9, 2022

Conversation

danfunk
Copy link
Collaborator

@danfunk danfunk commented Sep 7, 2022

Allows you to check which dependencies exist after adding one or more files to the BPMN parser.

"""Locate all calls to external BPMN and DMN files, and store their
ids in our list of dependencies"""
for call_activity in xpath('.//bpmn:callActivity'):
self.dependencies.append(call_activity.get('calledElement'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if you can get into a situation where you have duplicate dependencies, like multiple callActivity nodes that have the same calledElement? If so, perhaps a set for the dependencies?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

excellent point, I'll assure it's a unique set.

Allow accessing process dependencies and dmn dependencies separately.
Because DMN references vary between Camunda and Spiff, need to test that
both methods will work.
"""

Copy link
Contributor

Choose a reason for hiding this comment

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

For the record, I don't like camunda and spiff appearing here, though given the way our test suite is set up, there probably isn't a better way.

@sonarcloud
Copy link

sonarcloud bot commented Sep 9, 2022

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

@danfunk danfunk merged commit ecd01f2 into main Sep 9, 2022
@danfunk danfunk deleted the feature/dependencies branch September 21, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants