lib/my_rhouse/house_rules.rb
# Handle event on queue. Parse event and create an associated event object 
# for the rules engine to consume.
Handle event on queue. Parse event and create an associated event object
for the rules engine to consume.
Handle event on queue . Parse event and create an associated event object for the rules engine to consume .
def handle_event( event )
        logger.debug "Got Event #{event.inspect}"
        evt        = Rhouse::EventParser.parse( event )
        Rhouse.logger.debug "Parsed event #{evt.inspect}"  
        event_type = MyRhouse::Events::EventTypeFactory.create_event( evt )
        engine.evaluate( event_type )        
      end
def handle_event ( event ) logger . debug "Got Event #{event.inspect}" evt = Rhouse :: EventParser . parse ( event ) Rhouse . logger . debug "Parsed event #{evt.inspect}" event_type = MyRhouse :: Events :: EventTypeFactory . create_event ( evt ) engine . evaluate ( event_type ) end
Handle event on queue.
Handle event on queue .
# fire up rule engine
event
<not_specific>