                      :booker {:transform (fn [msg] (assoc msg :checked true))
                               :next [:invoice-generator (fn [msg] :notifier)]}}}}})
 
-  (def dispatchset1
-    {})
-
   #_(def router1 (message-router ruleset1))
 
   (->> (message :book-flight {:foo :bar})

      resmsgs)
    (do (warn "dropping message due to high transition-count")
        [])))

#_(defrecord MessageRouter [ruleset]


           :evmsgs []}
          eventhandlers))

(defn advance [{:keys [ruleset] :as router} msg]
  "Takes a message, runs it against ruleset and returns a sequence of routed messages."
  (debug "routing starting with" (printable-msg msg))
  (if (< (::transition-count msg) 100)
