refactor WorkingMemoryEvent* to RuleRuntimeEvent*
(cherry picked from commit 5679cdc6936556c323044e5eb3a786cc04025ea9)