Drools 引导编辑器给出错误“注意:尚未定义模型。”如何定义一呢?
我正在尝试遵循“JBoss Drools Business Rules”一书中的示例(该书与 Packt Publishing 的大多数其他书籍一样,是一本编辑得很差的混乱的拼写错误、糟糕的编辑和错误)。
自本书撰写以来,Drools UI 已经进步了一些,所以我无法完全跟上。
我已将模型作为 jar 文件上传,现在想要定义一些规则。
我导航到包 - >模型并找到我的模型
然后,在左侧,我说“创建新 - >新规则 - >业务规则(引导编辑器)”
我创建规则,然后尝试修改“何时”条件,我收到该错误
注意:尚未定义模型。提示: 您将需要导入或定义一个 该用户界面工作的模型 !
由于它不了解模型,因此这个引导界面并没有多大用处。
有谁知道这应该如何运作?
I'm trying to follow along with the examples in the book "JBoss Drools Business Rules" (which, like most other Packt Publishing books, is a poorly edited mess of misspellings, bad edits, and errors).
The Drools UI has advanced a bit since this book was written, so I can't follow along exactly.
I've uploaded a model as a jar file, and now want to define some rules.
I navigate to packages->models and find my model
Then, on the left hand side, I say "create new->New Rule->Business Rule (guided editor)"
I create the rule, then try to modify the "when" condition, and I get that error
Note: No model has been defined. Tip:
You will want to import or define a
model for this user interface to work
!
and since it doesn't know about the model, this guided interface doesn't really do much good.
Does anyone out there know how this is supposed to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的!我想我明白了
如果您从 Guvnor UI LHS 中选择您的包并单击它,您将获得一个配置菜单,可让您选择哪些上传的 jar 可供该包中定义的内容使用。
我添加了我上传的模型 jar,规则编辑器不再抱怨......
Ok! I think I got it
If you select your package from the Guvnor UI LHS and click on it, you'll get a configuration menu that lets you select what uploaded jars to make available to things defined in that package.
I added the model jar I uploaded, and the rules editor stopped complaining....