Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Persisting CBR choice in body

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

Viewing all articles
Browse latest Browse all 5648

Trending Articles