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?
感謝您的解釋。 –