Script definitions can connect a signal to a State transition; this is a useful thing to document with a recipe in the cookbook.