state simple begin when trigger begin do_something() end end