Hakim
   I recall a similar problem in the past.  Try using
(retract (fact-id 6))

retract takes a fact-id argument not an integer.  I think
integers worked in an earlier release.
                         - Tim Good

Graia, Hakim wrote:

Hi

I have problem with retracting facts I used retract and undefinstance but the fact is till there

Any one experience this problem ?


Hakim


Jess> (facts)
f-6 (MAIN::AlarmFaultData (assocEntityId1 1) (assocEntityId2 2) (assocEntityId3 0) (class <External-Address:java.lang.Class>) (description "The Wave Interface of an unprotected circuit is manually turned down. Caused by events: 11002 ONS540-00313 11003 ONS540-00401 ") (devEntityId 2) (devEntityId2 0) (eventCode "ONS540-10004") (eventIdentifier "") (leFsEntityId 0) (neEntityId 1) (nodeIp "") (nodeName "") (parentUuid -1) (persisted FALSE) (rawEventData nil) (sequenceId -1) (serialId "1:2") (serviceAffecting FALSE) (severity -1) (timeOfOccurance 1044305330739) (uuid 11005) (OBJECT <External-Address:com.giantloop.util.tool.obj.fault.AlarmFaultData>) (active TRUE) (eventSet <External-Address:java.util.LinkedList>) (inActive FALSE) (state 2) (timeDuration 0))

For a total of 1 facts.
Jess> (retract 6)
TRUE
Jess> (undefinstance *)
TRUE
Jess> (facts)
f-6 (MAIN::AlarmFaultData (assocEntityId1 1) (assocEntityId2 2) (assocEntityId3 0) (class <External-Address:java.lang.Class>) (description "The Wave Interface of an unprotected circuit is manually turned down. Caused by events: 11002 ONS540-00313 11003 ONS540-00401 ") (devEntityId 2) (devEntityId2 0) (eventCode "ONS540-10004") (eventIdentifier "") (leFsEntityId 0) (neEntityId 1) (nodeIp "") (nodeName "") (parentUuid -1) (persisted FALSE) (rawEventData nil) (sequenceId -1) (serialId "1:2") (serviceAffecting FALSE) (severity -1) (timeOfOccurance 1044305330739) (uuid 11005) (OBJECT <External-Address:com.giantloop.util.tool.obj.fault.AlarmFaultData>) (active TRUE) (eventSet <External-Address:java.util.LinkedList>) (inActive FALSE) (state 2) (timeDuration 0))

For a total of 1 facts.
Jess>

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