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: no no-implicit-end error on compensation activity #144

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

abdul99ahad
Copy link
Contributor

Closes #140

Proposed Changes

  • Compensation Activity and Event now don't show no-implicit-error

Checklist

To ensure you provided everything we need to look at your PR:

  • Brief textual description of the changes present
  • Visual demo attached
  • Steps to try out present, i.e. using the @bpmn-io/sr tool
  • Related issue linked via Closes {LINK_TO_ISSUE} or Related to {LINK_TO_ISSUE}

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Sep 2, 2024
@@ -32,6 +44,14 @@ module.exports = function() {
return false;
}

if (is(node, 'bpmn:BoundaryEvent') && isCompensationEventDefinition(node)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We still want to treat this as an implicit end like any other boundary event.

image

For comparison, timer boundary event with the implicit end error.

image

@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed needs review Review pending labels Sep 3, 2024
@abdul99ahad abdul99ahad marked this pull request as draft September 3, 2024 10:43
@abdul99ahad abdul99ahad marked this pull request as ready for review September 3, 2024 13:58
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Sep 3, 2024
rules/no-implicit-end.js Outdated Show resolved Hide resolved
@@ -48,3 +82,21 @@ module.exports = function() {

return { check };
};

function findParent(node, type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add this function to the utils and import it.

rules/no-implicit-end.js Outdated Show resolved Hide resolved
@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed needs review Review pending labels Sep 3, 2024
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Sep 6, 2024
Copy link
Contributor

@philippfromme philippfromme left a comment

Choose a reason for hiding this comment

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

Good job! Just added a couple of small adjustments.

@philippfromme philippfromme merged commit e4de70b into main Sep 6, 2024
7 of 10 checks passed
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Sep 6, 2024
@philippfromme philippfromme deleted the 140-compensation-activity branch September 6, 2024 11:30
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.

no-implicit-end rule reports false positives
2 participants