Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DeletedFactHistoryEventEach time there is a retracted object in the working memory (session) from java or from RHS (then), this event is added
InsertedFactHistoryEventEach time there is an inserted object in the working memory (session) from java from  RHS (then) of a rule, this event is added
UpdatedFactHistoryEvent

Each time there is an upaded object in the working memory (session) from java or from RHS (then), this event is added

Please not here that we record the old and new value of the updated object

 

 

Process Events

 

NodeInstanceAfterHistoryEventThis event is fired when leaving a node
NodeInstanceBeforeHistoryEventThis event is fired when entering a node
ProcessStartHistoryEventWhen a process is started
ProcessEndHistoryEventWhen a process is stoped

...

Entity Model used for all history events

 

DroolsFactObjectEach time an object is inserted/retracted/updated a new DroolsFactObject is instanciated to keep the value it had. 
DroolsFactObjectAttribute

We are storing in a Key/value the value of an attribute where key is the name of the attrinute and value a string representation of the value. The Type attribute is "String, Long, long, etc..)

Note that in case the attribute is a class , the value contains the toString method of the inserted/deleted/updated java object