itemisCREATE / statecharts

YAKINDU Statechart Tools (http://www.statecharts.org)
Eclipse Public License 1.0
176 stars 86 forks source link

Add warning if out events are checked in reactions but are not raised before. #2434

Closed terfloth closed 5 years ago

terfloth commented 5 years ago

If out events are used as reaction triggers or in reaction guards but are not raised in the statechart then they will always evaluate to false. It makes sense to provide a hint to the user to explain the constraint and avoid confusion.

A validation rule with the following properties must be implemented.

This issue was derived from issue #2205 .

terfloth commented 5 years ago

The objection that this ticket does not make sense as out events just can be raised but not handled is false.

The statechart can react on out events that were raised before. While this "feature" can generally be questioned it is not possible to change this for the current implementations as this can break existing customer models.