Hi,

        I've played a little with jess, and had troubles with insert$
(although it works with CLIPS 6.10):



(deftemplate profil  (slot UserID)  (slot Gender) (multislot offer) )

(deffacts etat-init
  (profilP3P (UserID 10) (Gender Male) (offer (create$ 0)))
  )

(defrule mkt-n ""
  ?p <- (profil (UserID ?id) (Gender Male) (offer $?l))
   =>
   (modify ?p (offer (insert$ $?l 1 362032)))
 )

Rete Exception in routine Value::listValue while executing defrule mkt-n.
  Message: Not a list: 362032 type = 4 at line 99:  ( run )  at line 5:  (
batch
 aimediamktrlz.clp ) .
        at jess.Value.typeError(Value.java:299)
        at jess.Value.listValue(Compiled Code)
        at jess.InsertMF.call(Compiled Code)
        at jess.Funcall.simpleExecute(Compiled Code)
        at jess.Funcall.execute(Compiled Code)
        at jess.Context.expandList(Compiled Code)
        at jess.Context.expandList(Compiled Code)
        at jess.Context.expandValue(Compiled Code)
        at jess.Context.expandAction(Compiled Code)
        at jess.Defrule.fire(Compiled Code)
        at jess.Activation.fire(Activation.java:60)
        at jess.Rete.run(Compiled Code)
        at jess.Rete.run(Compiled Code)
        at jess.HaltEtc.call(Funcall.java:1588)
        at jess.Funcall.simpleExecute(Compiled Code)
        at jess.Funcall.execute(Compiled Code)
        at jess.Funcall.execute(Compiled Code)
        at jess.Jesp.parseAndExecuteFuncall(Jesp.java:1413)
        at jess.Jesp.parseSexp(Compiled Code)
        at jess.Jesp.parse(Compiled Code)
        at jess.Batch.call(Compiled Code)
        at jess.Funcall.simpleExecute(Compiled Code)
        at jess.Funcall.execute(Compiled Code)
        at jess.Funcall.execute(Compiled Code)
        at jess.Jesp.parseAndExecuteFuncall(Jesp.java:1413)
        at jess.Jesp.parseSexp(Compiled Code)
        at jess.Jesp.parse(Compiled Code)
        at jess.Main.execute(Compiled Code)
        at jess.Main.main(Main.java:26)


If you can help me,

        Regards,

               Emmanuel
 
--------------------------------------------
Emm@nuel PIERRE
17-24 GMT: [EMAIL PROTECTED] 
              +33 6 57 60 42 17 (tatoo txt)
1-17 GMT: [EMAIL PROTECTED]
              +33 1 46 13 34 68
Please visit:  http://www.linux-expo.com 
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to