Hi, I have a query on how once you have added some values to an array
list, how in Jess you can then retrieve the contents of the array as one
String? It's the conversion of Java code to Jess that's proving difficult
for me. Thanks.
(defglobal ?*rule7List* = (new java.util.ArrayList))
(defrule rule7-reminder
(farming-generalrules (name "rule7")(status "on"))
(test (and (eq ?*month* ?*cattle-in-month*)(eq ?*day* ?*cattle-in-day*)))
=>
(?*rule7List* add "(Cattle In)")
(printout t "Rule7" crlf))
(defrule rule7-reminder
(farming-generalrules (name "rule7")(status "on"))
(test (and (eq ?*month* ?*cattle-out-month*)(eq ?*day*
?*cattle-out-day*)))
=>
(?*rule7List* add "(Cattle Out)")
(printout t "Rule7" crlf))
So for this example I'd want a String that read (Cattle In)(Cattle Out) if
these two reminders were both scheduled for today's date 22/2.
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------