# File lib/ruote/exp/fe_listen.rb, line 311
    def determine_condition

      if h.upon == 'dispatch' || h.upon == 'receive'

        { 'participant_name' => h.to }

      elsif h.upon == 'error_intercepted'

        {
          'class' => Ruote.comma_split(attribute(:class) || ''),
          'message' => attribute(:message) || attribute(:msg)
        }.delete_if { |k, v|
          v == nil or v == []
        }

      else

        { (h.to.match(/\//) ? 'full_tag' : 'tag') => h.to }
      end
    end