如何插入RHS的入口点?
来自精通JBoss流口水6的书
rule "Routing.."
when
...
then entryPoints["Stream Y"].insert(t)
end我试图使用Drools 7来完成这项工作,但是我得到了一个错误Unable to build KieBaseModel。
编辑:完整消息:
Unable to Analyse Expression drools.entryPoints["Stream Y"].insert(t);:
[Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.entryPoints()]
[Near : {... drools.entryPoints["Stream Y"].insert ....}]注意:我没有定义任何名为entrypoints的全局。
发布于 2017-12-19 10:11:31
显然,Drools 7中的entryPoints自动变量已经不在了。
rule "Routing.."
when
...
then
drools.getEntryPoint("Stream Y").insert(t)
end希望能帮上忙
https://stackoverflow.com/questions/47828338
复制相似问题