Skip to content

Conversation

@pmeyer-viadee
Copy link
Contributor

@pmeyer-viadee pmeyer-viadee commented Nov 21, 2025

Fixes #242

Proposed Changes

Do not apply permanent colors to flows of Inclusive Gateways when resetting them.
I oriented myself on the (correctly working) ExclusiveGatewaySettings.resetSequenceFlow logic.

Demo after fix:
After toggling the token simulation on and off, and saving the diagram, the xml is not different from before anymore.
image

Steps to try out: see #242

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}

@CLAassistant
Copy link

CLAassistant commented Nov 21, 2025

CLA assistant check
All committers have signed the CLA.

@nikku
Copy link
Member

nikku commented Nov 25, 2025

Thanks for your PR. I verified it fixes the issue.

Root cause

  • We set colors after other components kick in to reset them, hence they remain set permanently
  • Solution: Either not set colors during reset, or hook into TOGGLE_SIMULATION with high priority, so other behaviors (resetting colors) kicks in later.

I'm fine with the path you took, aligning both behaviors.

Follow-ups needed

In order for us to merge the contribution:

  • Ensure that the commit message fits with our conventional commit guidelines, i.e.

    fix(inclusive-gateway-settings): do not flow colors during reset
    
    Closes #242 
    
  • Consider to add a test case in the spirit of this, in test/spec/features/inclusive-gateway-settings, verifying the issue and fix. This way we don't accidentally unbuild your fix in the future.

Thanks for your contribution!

@nikku nikku self-requested a review November 25, 2025 08:54
@Buckwich Buckwich added the ready Ready to be worked on label Nov 25, 2025 — with bpmn-io-tasks
@pmeyer-viadee
Copy link
Contributor Author

Hi Nico,
thanks for your feedback.
I updated the commit message and provided a test for all gateways, verifying the xml remains unchanged after toggling the simulation on and off.
Let me know if there is anything more to do.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

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

Thanks for the update! I slightly simplified the tests and squashed the changes via 20591cc. Awesome contribution.

@nikku nikku merged commit e2bc513 into bpmn-io:main Nov 28, 2025
5 checks passed
@bpmn-io-tasks bpmn-io-tasks bot removed the ready Ready to be worked on label Nov 28, 2025
@nikku
Copy link
Member

nikku commented Nov 28, 2025

Released as v0.38.2.

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.

Inclusive Gateway Outgoing Flows not reset correctly when deactivating token simulation

4 participants