I am running into difficulty with the fact-slot-value function.  In a rule,
the LHS binds a deftemplated fact to a variable called ?second, then in the
RHS I try to access the value of one of the slots with the fact-slot-value
method.  I am NOT using an enumeration, just a standard fact:

;bind the remaining sections perfect-bound
(defrule bind-a-section-perfect-bound
    (Part (bindingStyle "perfect-bound"))
    ?first <- (Section (binds-next-to ?bnt&~nil))
    ?second <- (Section (binds-next-to nil))
=>
    (assert (Section (pageCount (fact-slot-value ?second pageCount))
        (maxPageCount (fact-slot-value ?second maxPageCount))
        (sectionID (fact-slot-value ?second sectionID))
        (binds-next-to ?first))
    )
    (retract ?second)
)


I get this error:
Jess reported an error in routine call
        while executing (call (engine) findFactByID ?__fact-id)
        while executing (bind ?__fact (call (engine) findFactByID ?__fact-id))
        while executing deffunction fact-slot-value
        while executing (fact-slot-value ?second pageCount)
        while executing (assert (Section (pageCount (fact-slot-value ?second
pageCount)) (maxPageCount (fact-slot-value ?second maxPageCount)) (sectionID
(fact-slot-value ?second sectionID)) (binds-next-to ?first)))
        while executing defrule bind-a-section-perfect-bound
        while executing (run).
  Message: No overloading of method 'findFactByID' in class jess.Rete I can
call with these arguments: (call (engine) findFactByID ?__fact-id).
  Program text: ( run )  at line 36.


I have triple-checked the slot names are correct, though I don't think that
is it.  I am running Jess 6.0a3.  I am working around it for now by binding
variables to the value of the section in the LHS, but I'd rather use the
fact-slot-value for clarity.

> ______________________________________________
> Matt Bishop - Engineering Manager, UpFront
> 
> We're Growing - http://www.scenicsoft.com/jobs 

---------------------------------------------------------------------
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]
---------------------------------------------------------------------

Reply via email to