Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f4e21a97d5
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (8 sloc) 0.322 kb
(ns salesorg.event-handling
(use [eventing.processing :only (process-event)]))
(defmethod process-event 'sales/purchase
[evt]
(println (format "We made a sale of %s to %s!" (:products evt) (:username evt))))
(defmethod process-event 'sales/lead-generation
[evt]
(println "Add prospect to CRM system: " evt))
Jump to Line
Something went wrong with that request. Please try again.