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"
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"