The following Jess code (after the # is in a batch
file excuted from within the following snippet of a Java program
(postSignalProcessor is called from the Java Main.) The first rule merely
prints out a couple of the shadow facts' slot values. The second rule I
attempt
I think Michael Knapik wrote:
;;(call event setConditionCodeId )
Variables always have a ? in their name:
(call ?event setConditionCodeId )
(modify 2 (conditionCodeID ))
Slot names are case-sensitive:
(modify 2 (conditionCodeId ))
crlf)
produces
Event 100017 has a condition code: 1008
which is the original value.
?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 1:45 PM
Subject: Re: JESS: Problem updating shadow fact data
I think Michael Knapik wrote
I think Michael Knapik wrote:
(defrule report-subject-and-event-status
?s - (subject (subjectId ?sId) (caseStatusId ?csId))
?e - (event (eventId ?eId) (conditionCodeId ?ccId)(eventDescriptor ?evtDescriptor))
=
(modify ?e (conditionCodeId ))
(printout t * Event ?eId has a condition