Assert: Assert is a way to insert facts into rule engine working memory at execution time. Assert function might cause rule execution cycle to repeat and it can also alter rule execution agenda. When a fact is added using Assert () function, rule execution cycle repeats itself and rules are re-evaluated.
Retract: is the opposite of assert; basically, removing a fact from the BRE memory.
Update: Indicates that a certain fact should be re-evaluated, causing all rules using the fact to be re-evaluated. In Assert, all of the rules are re-evaluated while in Update only those rules are re-evaluated where updated fact is either in predicate or in both action and predicate.
Halt: Halt function to halts the current rule engine execution.
Comments
Post a Comment
Please write comment only that belongs to this blog