Dear Jess users,

My JESS-code contains two templates,

(deftemplate MAIN::end_mill_non_indexable
   (slot name) (slot diameter) (slot length) (slot flutelength) (slot
flutes) (slot cornerradius) (slot material))

and

(deftemplate MAIN::face
    (slot length)
    (slot width)
    (slot roughness)).

The working memory contains end_mill_non_indexable facts.

This is the rule I want to fire:

(defrule MAIN::remove-end-mill-non-indexable
    "removes some tools"
                ?f <- (face)
                ?t <- (end_mill_non_indexable)
    =>
                (retract ?t)                                         
    )

If I assert a face-fact the rule is firing but the retract-command seems not
to be working correctly. The working memory still contains all
end_mill_non_indexable facts. Why? The rule should remove ALL
end_mill_non_indexable facts!

Thanks in advance for your help.

Adam




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