JESS: [EXTERNAL] Example in Jess In Action
"Ahmed Abdeen Hamed" <[email protected]> Thu, 10 Jan 2013 14:19:16 -0500
| Newsgroups | gmane.comp.java.jess |
|---|---|
| Message-ID | <CAEymOEe1Bxq2bc7JhDFtGF4_hPacafcQ7R0K3SX-7NiyX8QWyw@mail.gmail.com> |
--047d7b3438ea09a6de04d2f40efd
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=iso-8859-1
Hello,
The examples in section 7.2.4 aren't working. When I running them, I get
the following error. Any clue?
Jess> (defrule small-order
(shopping-cart (customer-id ?id)
(contents $?c&: (< (length$ $?c) 5)))
(chechking-out-now ?id)
=>
(printout t "Wouldn't you like to but more?" crlf))
Jess reported an error in routine Jesp.parsePattern.
Message: Bad slot value .
Program text: ( defrule small-order ( shopping-cart ( at line 13.
at jess.Jesp.a(Unknown Source)
at jess.Jesp.a(Unknown Source)
at jess.Jesp.if(Unknown Source)
at jess.Jesp.do(Unknown Source)
at jess.Jesp.int(Unknown Source)
at jess.Jesp.for(Unknown Source)
at jess.Jesp.parse(Unknown Source)
at jess.Jesp.parse(Unknown Source)
at jess.Main.execute(Unknown Source)
at jess.Main.main(Unknown Source)
Jess>
Perhaps there is a syntax error or a typo but I can't figure it out....
Thanks,
-Ahmed
--047d7b3438ea09a6de04d2f40efd
Content-Type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div><div>Hello,<br><br></div>The examples in section=
7.2.4 aren't working. When I running them, I get the following error. =
Any clue?<br><br>Jess> (defrule small-order<br>=A0=A0=A0 (shopping-cart =
(customer-id ?id)<br>
=A0=A0=A0 =A0=A0=A0 (contents $?c&: (<=A0 (length$ $?c) 5)))<br>=A0=
=A0=A0 (chechking-out-now ?id)<br>=3D><br>(printout t "Wouldn't=
you like to but more?" crlf))<br><br>Jess reported an error in routin=
e Jesp.parsePattern.<br>
=A0 Message: Bad slot value .<br>=A0 Program text: ( defrule small-order ( =
shopping-cart (=A0 at line 13.<br>=A0=A0=A0 at jess.Jesp.a(Unknown Source)<=
br>=A0=A0=A0 at jess.Jesp.a(Unknown Source)<br>=A0=A0=A0 at jess.Jesp.if(Un=
known Source)<br>=A0=A0=A0 at <a href=3D"http://jess.Jesp.do">jess.Jesp.do<=
/a>(Unknown Source)<br>
=A0=A0=A0 at <a href=3D"http://jess.Jesp.int">jess.Jesp.int</a>(Unknown Sou=
rce)<br>=A0=A0=A0 at jess.Jesp.for(Unknown Source)<br>=A0=A0=A0 at jess.Jes=
p.parse(Unknown Source)<br>=A0=A0=A0 at jess.Jesp.parse(Unknown Source)<br>=
=A0=A0=A0 at jess.Main.execute(Unknown Source)<br>
=A0=A0=A0 at jess.Main.main(Unknown Source)<br>Jess> <br><br></div><div>=
Perhaps there is a syntax error or a typo but I can't figure it out....=
<br></div><div><br><br></div>Thanks,<br><br></div>-Ahmed<br></div>
--047d7b3438ea09a6de04d2f40efd--