JESS: [EXTERNAL] Example in Jess In Action

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JESS: [EXTERNAL] Example in Jess In Action

Ahmed Abdeen Hamed
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