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: remove zeebe:subscription if no properties left #24

Closed
wants to merge 1 commit into from

Conversation

barmac
Copy link
Member

@barmac barmac commented Oct 16, 2023

Closes #21

@barmac barmac requested review from a team, philippfromme and marstamm and removed request for a team October 16, 2023 12:28
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Oct 16, 2023
@barmac barmac force-pushed the 21-remove-subscription branch from c05a8c3 to bef7a4b Compare October 16, 2023 12:48
properties: {
[ binding.name ]: undefined
// remove subscription of none properties are left
if (noPropertiesLeft(subscription, binding.name)) {
Copy link
Member

Choose a reason for hiding this comment

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

The alternative is to handle this via a behavior, cf. camunda-bpmn-js-behaviors.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm perhaps it makes more sense. I declined this option initially because I thought it's an element-templates-only problem, but the cleanup is broken also in non-templated messages.

@barmac
Copy link
Member Author

barmac commented Oct 16, 2023

Closing this because we can solve the problem for all cases in the behaviors repo. Thanks for suggestion @nikku
#24 (comment)

@barmac barmac closed this Oct 16, 2023
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Oct 16, 2023
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.

Property bpmn:Message#zeebe:subscription#property is not cleaned up properly
2 participants