Adds a side effect to the transition.
Example:
on TimerExpired becomes Green also { state, event -> log(event) }