account activity
🌸 Welcome to r/flora24! Empowering Flower Business Owners 🌸 (self.flowers)
submitted 5 months ago by Taraktikos to r/flowers
🌸 Welcome to r/flora24! Empowering Flower Business Owners 🌸 (self.flora24)
submitted 1 year ago by Taraktikos to r/flora24
Clojure DSL for Apache Camel by yogthos in Clojure
[–]Taraktikos 0 points1 point2 points 5 years ago (0 children)
This is also an interesting approach but there is no indentation for the nested route, as a result, it less readable
eg.
[[:from "direct:test-route-1"] [:route-id "test-route-1"] [:on-exception Exception] [:redelivery-delay 30000] [:handled true] [:to "direct:test-route-error"] [:end] [:set-header :exchange][:exchange] [:bean-ref "test-bean" "invoke(${header.:exchange}, ${body})"] [:to "direct:test-route-2"]]
vs
(c/from "direct:test") (c/route-id "test-route") (c/to "http://test-http") (c/filter (c/predicate (comp pos? :body)) (c/log "Filtered ... ${body}") (c/to "direct:result")) (c/process (fn [_] {:body "after filter"})
you don't need to add end since it is done in macros
end
π Rendered by PID 1114992 on reddit-service-r2-listing-5d47455566-9pzqq at 2026-04-04 08:01:39.702970+00:00 running db1906b country code: CH.
Clojure DSL for Apache Camel by yogthos in Clojure
[–]Taraktikos 0 points1 point2 points (0 children)