I'm trying to do the following with a the Java DSL in a route:
.choice()
.when(header("maxRows").isNotNull())
.recipientList(simple("sql:{{sql.claimLookupWithMaxRows}}")).delimiter("false")
.otherwise()
.recipientList(simple("sql:{{sql.claimLookup}}")).delimiter("false")However, I get a compile error that "otherwise" is a method that doesn't exist. Any ideas? Thanks, Matt
