Closed tkutz closed 5 years ago
Additionally, when a history state does not have an outgoing transition AND there is NO other default entry, we should give a warning because then we have to trust that the model is built in a way that the composite state is always entered somehow (by a hierarchy crossing transition) before the history state is entered.
The first two cases will produce a warning now. See PR https://github.com/Yakindu/statecharts/pull/2419
We have a validation for regions without default (unnamed) entries. This works well for standard entries which always have an outgoing transition. However, when a history state is used as default entry (because it is unnamed) we need to validate that it either has an outgoing transition, or that the region can be entered directly by a hierarchy crossing transition.
This should be marked as invalid:
However, this is ok:
And this is of course also fine: