# File lib/ruote/evt/tracker.rb, line 57 def notify (msg) doc = @context.storage.get_trackers doc['trackers'].values.each do |tracker| t_wfid = tracker['wfid'] t_action = tracker['action'] m_wfid = msg['wfid'] || (msg['fei']['wfid'] rescue nil) next if t_wfid && t_wfid != m_wfid next if t_action && t_action != msg['action'] next unless does_match?(msg, tracker['conditions']) m = tracker['msg'] @context.storage.put_msg( m.delete('action'), m.merge!('workitem' => msg['workitem'])) end end