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

feat(modeling): keep interrupting config when replacing elements #2000

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

marstamm
Copy link
Contributor

@marstamm marstamm commented Nov 1, 2023

This PR adds 2 new features:

  • Keep the interrupting state when replacing elements, when the interrupting state is not explicitly set. This is used when element-templates are applied to events
    Recording 2023-11-01 at 13 24 20

  • Add a toggle header button to non-interrupting events
    image

related to bpmn-io/bpmn-js-element-templates#20
You can try out the integration with element templates here: https://marstamm.github.io/non-interrupting-modeling-demo/

@marstamm marstamm requested a review from a team November 1, 2023 12:27
@marstamm marstamm self-assigned this Nov 1, 2023
@marstamm marstamm requested review from smbea and barmac and removed request for a team November 1, 2023 12:27
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Nov 1, 2023
@marstamm
Copy link
Contributor Author

marstamm commented Nov 1, 2023

We could decide if it is a breaking change that bpmnReplace.replaceElement() now requires cancelActivity and isInterrupting to be explicitly set, when previously it defaulted to true

@barmac
Copy link
Member

barmac commented Nov 2, 2023

Do you know if it's breaking any extension? I'd say that the previous behavior was bug-like. If I want to change type of my element, I shouldn't implicitly change other attributes.

@marstamm
Copy link
Contributor Author

marstamm commented Nov 2, 2023

I don't think it is breaking any extensions. Let's consider the previous behavior a bug and make it a minor release

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.

2 participants