public void generateCommand ( Exchange exchange ) throws Exception { System . out . println ( ">> We will fire all rules commands" ) ; FireAllRulesCommand fireAllRulesCommand = new FireAllRulesCommand ( ) ; exchange . getIn ( ) . setBody ( fireAllRulesCommand ) ; }
Generate command .