Warning:
This wiki has been archived and is now read-only.
AssertRetract
From RIF
Test Type | PositiveEntailmentTest | ||||
---|---|---|---|---|---|
Contributor | Adrian Paschke | ||||
Status | Approved | ||||
Record | February 2, 2010 telecon | ||||
Dialect | PRD | ||||
Purpose | Retract + Assert Action of RIF PRD | ||||
Description | Demonstrates the combination of the assert and retract action in RIF PRD. The rule retracts every facts about the existing customer object and asserts a new fact with a new discount value of "0". Note, the combination of retract and assert in this example does not behave like a modify action, since the ex:status ex:John is retracted as well (and, therefore, re-initialized to "unknown" by the second rule). | ||||
SeeAlso | AssertRetract2, Assert, Retract, Modify | ||||
SpecRef | http://www.w3.org/2005/rules/wiki/PRD | ||||
Premises |
|
||||
Conclusion |
|