Pls help me debug this error...
Jess> (defrule recommendipodnano (object(is-a Customer)(customer-id ?id)) (not (and (object(is-a SalesOrder)(OrderNumber ?o)(customer-id ?id)) (object(is-a LineItem)(OrderNumber ?o)(partnumber ?pn)) (object(is-a Product)(partnumber ?pn)(name “ipod nano”)))) => (assert (object(is-a Recommend)(OrderNumber ?o)(partnumber ?pn))) ) TRUE Jess> (run) Jess reported an error in routine Context.getVariable while executing (assert (MAIN::object (is-a Recommend) (is-a-name nil) (OBJECT nil) (rdfs:label ) (owl:versionInfo ) (rdfs:comment ) (rdfs:member ) (:NAME ) (rdfs:isDefinedBy ) (rdfs:seeAlso ) (owl:differentFrom ) (owl:sameAs ) (rdf:value ) (protege:inferredType ) (rdf:type ) (name ) (category ) (partnumber ?pn) (price ) (requires ) (address ) (customer-id ) (OrderNumber ?o) (quantity ))) while executing defrule MAIN::recommendipodnano while executing (run). Message: No such variable pn. Program text: ( run ) at line 39. at jess.Context.getVariable(Unknown Source) at jess.Variable.resolveValue(Unknown Source) at jess.Fact.a(Unknown Source) at jess.bj.call(Unknown Source) at jess.ep.a(Unknown Source) at jess.Funcall.execute(Unknown Source) at jess.Defrule.a(Unknown Source) at jess.Activation.if(Unknown Source) at jess.a8.a(Unknown Source) at jess.a8.int(Unknown Source) at jess.Rete.run(Unknown Source) at jess.a0.call(Unknown Source) at jess.ep.a(Unknown Source) at jess.Funcall.execute(Unknown Source) at jess.Jesp.a(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 JessTab.JessTabEngine.run(JessTabEngine.java:114) at java.lang.Thread.run(Unknown Source) .......Pls reply at earliest....thanks -- View this message in context: http://www.nabble.com/No-such-Variable-error-tf2123743.html#a5858821 Sent from the Jess forum at Nabble.com. -------------------------------------------------------------------- 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] --------------------------------------------------------------------