Skip to content

Conversation

@jefftrull
Copy link
Contributor

Problem:

  • When a composite state is re-entered, any submachines within the state also need to be initialized, or they will remain in their prior terminated state

Solution:

  • Recursively call update_composite_state on any initial states that are themselves composite
  • Add a test for this situation

Issue: #645

Reviewers:
@kris-jusiak @deoliveiravinicius

When a composite state is re-entered due to an event any submachines
within the state also need to be initialized, or they will remain in
their previous terminated state.

- Recursively call update_composite_state on any initial states that
are themselves composite
- Add a test for this situation
@deoliveiravinicius
Copy link

Very nice! Tested this change on our codebase. It seems to fix the reported issue and didn't introduce any regressions for us (we have over 1000 tests cases)

@kris-jusiak kris-jusiak merged commit bf447ce into boost-ext:master Oct 13, 2025
5 checks passed
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.

3 participants