![](/img/trans.png)
[英]How to read drl file by using drools API? Is there any function in drools that can parse drl file into some value or other formats?
[英]Read any file from DRL file Drools
是否有任何方法可以读取或解析任何文件格式,例如:DRL文件Drools中的JSON或XML? 例如:
when
SomeClass()
read any file type JSON or XML
then
Do something
不需要。您将需要在DRL之外读取和解析文件,然后将解析结果输入到会话中。
如果需要,您还可以在规则的RHS中进行解析。
希望能帮助到你,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.