camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Behrad <behr...@gmail.com>
Subject Persisting CBR choice in body
Date Fri, 19 Dec 2014 18:44:57 GMT
I want to persist which predicate of a CBR has been matched in my message
body. Is any better way than this?

from "seda:test" routeId "test" choice
when( pred1 ) transform setBody(updatedObjectWithPred1Id ) to "somewhere"
when( pred2 ) transform setBody(updatedObjectWithPred2Id ) to "somewhere2"
otherwise  transform setBody(updatedObjectWithNoMatchId ) to "somewhere3"

-- 
--Behrad

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message