[英]Need to fire a rule from eclipse that s ceated in drools guvnor
Though I am able to fire rules from eclipse those are created inside the project but I am not able to fire a rule thay is being created in drools guvnor after deploying its pojo model? 尽管我可以从eclipse中触发那些在项目内部创建的规则,但是我不能在部署pojo模型后在drools guvnor中创建一条规则? Does my approach right?
我的方法正确吗? any suggestion regarding my approach????
关于我的方法有什么建议吗?
You probably want to use a KnowlegdeAgent, this allows you to create a kbase from a compiled package in guvnor. 您可能要使用KnowlegdeAgent,这使您可以从guvnor中的已编译软件包创建kbase。 http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html/ch09.html#d0e3433
http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html/ch09.html#d0e3433
Alternatively, you can download the rule files from guvnor using a changeset and hardcoding the url there, like for example: https://github.com/droolsjbpm/jbpm/blob/5.4.0.Final/jbpm-test/src/main/java/org/jbpm/test/JbpmJUnitTestCase.java#L213 或者,您可以使用变更集从guvnor下载规则文件并在其中对网址进行硬编码,例如: https : //github.com/droolsjbpm/jbpm/blob/5.4.0.Final/jbpm-test/src/main /java/org/jbpm/test/JbpmJUnitTestCase.java#L213
Kris 克里斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.