Message body is my persistent domain model @taariq

On Sat Dec 20 2014 at 1:57:01 PM Taariq Levack <taar...@gmail.com> wrote:

> Hi
> Just wondering, is there a reason you want to enrich the body instead of
> setting a header or property on the exchange?
>
> Taariq
>
>
>
> On Fri, Dec 19, 2014 at 8:44 PM, Behrad <behr...@gmail.com> wrote:
>
> > 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
> >
>

Reply via email to