如果我使用 Twilio 和 Kynetx创建一个幼儿游乐线(参见http://blog.tropo.com/2010/11/22/something-fun-and-quick-to-make-the-toddler-amusement-line/ )我是否需要在我的规则集中设置停止条件,或者调用者挂断时评估是否会结束?
// WARNING! Do not use this ruleset!
rule callstart {
select when twilio callstart
always { raise explicit event loves_me }
}
rule loves_me {
select when explicit loves_me
twilio:say("She loves me.")
always { raise explicit event loves_me_not }
}
rule loves_me_not {
select when explicit loves_me_not
twilio:say("She loves me not.")
always { raise explicit event loves_me }
}
我的猜测:调用启动规则集运行。来电者响起。一小部分KNS哭了。