Automatically publish events upon state transitions. All you have to do is subscribe.