Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created February 16, 2012 17:16
Show Gist options
  • Save ctataryn/1846540 to your computer and use it in GitHub Desktop.
Save ctataryn/1846540 to your computer and use it in GitHub Desktop.
Object ret = camelProducerTemplate.requestBody("direct:updatePlayer", updatedPlayer);
.
.
.
.
from("direct:updatePlayer")
.to("direct:retrieveExistingPlayer")
.aggregate(new ArrayListAggregationStrategy())
.body().completionSize(2)
.choice()
.when(and(isExistingPlayerInCRM(), not(isUpdatedUserWantingToBeInCRM())))
.bean(CRMPlayerTransformer.class)
.to("direct:removeFromCRM");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment