0
在杰斯的方式返回一个值从规则中返回一个字符串就是这样:从规则杰斯或滴料(专家系统)
(defrule welcome-toddlers
"Give a special greeting to young children"
(person {age < 3})
=>
(printout t "Hello, little one!" crlf))
我的问题是如何实现的返回功能,这就是我想要:
(defrule welcome-toddlers
"Give a special greeting to young children"
(person {age < 3})
=>
(return "Hello, little one!"))
如果不可能如何做在drools?
感谢您的解释。 –