kre / Kinetic-Rules-Engine

Source code for KRE
GNU General Public License v2.0
54 stars 8 forks source link

event:type() not working #74

Closed windley closed 10 years ago

windley commented 10 years ago

This rule

rule route_alert {
  select when fuse alert_saved
  always {
    raise explicit event route_ready attributes
      {"record": event:attrs(),
   "eventType": event:type()
};
  }
}

doesn't get "alert_saved" as the value for eventType, but rather some other event type of a rule that ran before.

event:attr() doesn't suffer from this same problem (altho it has it's own scoping problems)

windley commented 10 years ago

Fixed in 71496d7