扩展引用中的有效蜜蜂蜇伤表达是什么?
rule set_persistents {
select when pageview ".*"
noop();
always {
ent:ecount += 1 from 1;
app:acount += 1 from 1;
}
}
rule test_bee_stings {
select when pageview ".*"
pre {
sum = ent:ecount + app:acount;
content = <<
sum is #{sum}<br/>
sum + 1 is #{sum+1}<br/>
ecount is #{ent:ecount}<br/>
acount is #{app:acount}
>>;
}
notify("Results", content) with sticky = true;
}
当我运行它时,我什么也得不到(永远看不到通知框)。如果我删除 ecount 和 acount 行,我会得到
sum is 2
sum + 1 is 21
哪些蜜蜂蜇人表达在扩展引用中是有效的?普通的带引号的字符串有什么不同吗?