简体   繁体   English

从DRL文件Drools中读取任何文件

[英]Read any file from DRL file Drools

Is there any way to read or parse any file format ex: JSON or XML from DRL file Drools ? 是否有任何方法可以读取或解析任何文件格式,例如:DRL文件Drools中的JSON或XML? for example: 例如:

when 
SomeClass()
read any file type JSON or XML

then
Do something

No. You will need to read and parse the file as you want outside of the DRL and then feed the results of the parsing into your session. 不需要。您将需要在DRL之外读取和解析文件,然后将解析结果输入到会话中。

You can also do the parsing in the RHS of a rule if you want. 如果需要,您还可以在规则的RHS中进行解析。

Hope it helps, 希望能帮助到你,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM