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

Token simulation allows incoming sequence flows for events after an event based gateway #139

Open
marstamm opened this issue Nov 21, 2023 · 4 comments
Labels
backlog Queued in backlog bug Something isn't working good first issue Good for newcomers spring cleaning Could be cleaned up one day

Comments

@marstamm
Copy link
Contributor

Describe the Bug

Reported as camunda/camunda-modeler#3984

When adding token simulation to the modeler, I can model non spec-compliant diagrams, which are not possible without the plugin.

image

Steps to Reproduce

Try to model the above diagram

Expected Behavior

282849938-8fa48095-8cfa-446f-b660-f8a8590039ef

Environment

  • Host (Browser/Node version), if applicable: [e.g. MS Edge 18, Chrome 69, Node 10 LTS]
  • OS: [e.g. Windows 7]
  • Library version: [e.g. 2.0.0]
@sombrek
Copy link
Contributor

sombrek commented Aug 18, 2024

I found that EventBasedGatewayBehavior.js (token-simulation) overrides EventBasedGatewayBehavior.js (bpmn-js). The latter removes sequence flows disallowed by the spec.

@nikku
Copy link
Member

nikku commented Aug 18, 2024

This should make it easy for us to fix. Thanks for the root causing.

@nikku nikku added the good first issue Good for newcomers label Aug 18, 2024
@sombrek
Copy link
Contributor

sombrek commented Aug 23, 2024

I discovered more examples before I noticed your reference to the public API bug.

  • The token simulator exposes a BoundaryEventBehavior, so boundary events of receiving tasks are not removed when they become target of an event gateway.
  • It also exposes multiple MessageFlowBehavior, so message flows pointing to elements within a pool don't reconnect to a pool that's being collapsed.
Demo

visual-demo

@barmac
Copy link
Member

barmac commented Aug 23, 2024

Thanks for reporting. I think we should look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog bug Something isn't working good first issue Good for newcomers spring cleaning Could be cleaned up one day
Projects
None yet
Development

No branches or pull requests

4 participants