[英]How do I force the rerun of the app's initial rule?
我有一个具有登录/注销功能的应用程序。 注销后,我正在清除实体变量。 如何强制应用重新运行初始规则并显示登录表单?
您可以通过精心设计初始规则的select语句来再次运行初始规则。 假设您正在浏览器中运行该应用程序,则初始规则在网页浏览量上触发,而注销单击会触发自定义注销网络事件,这就是我要做的:
rule initial_rule {
select when web pageview "awesome*Regex(here)" or web logout
pre {
// do cool stuff here
}
{
// fire actions here
}
// postlude block of choice here
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.