event 命令也是一个方法调用,使用 符号(定义事件名)和闭包(定义转换)作为参数。
The event command is also a method invocation, taking a symbol (which defines the event's name) and a closure, which defines the transitions.
当Gant脚本中发生“事件”时,Grails就会调用相应的事件闭包。
The event closures are called by Grails when the corresponding "events" get generated in the Gant script.
将值设置为debug会导致将每个事件和动作包写到日志文件。
Setting a value of debug results in every event and action packet being written to the log file.
应用推荐