This repository provides the code the support the demonstration of the abilities of Spring Cloud Data Flow.
This module creates a Kafka bound Source application that writes json messages with the following format.
{
"id":1572210122,
"sourceName":"KafkaJsonWriter",
"valid":false,
"profit":19676,
"weekend":false
}This module creates a Kafka bound Source application that writes xml messages with the following structure
<SALE_RECORD>
<SALE_ID>2937703603923367659</SALE_ID>
<SOURCE_ID>KAFKA_XML_SOURCE</SOURCE_ID>
<IN_PROCESS>true</IN_PROCESS>
<ACCEPTED>true</ACCEPTED>
<VALUE>11389</VALUE>
</SALE_RECORD>This module creates a Kafka bound Processor application that reads json messages and transforms them into the domain
object below note the absence of the source name fields and the translation of the profit field and the weekend field.
This demonstrates business and domain translation.
{
"saleId":2061885782503076571,
"finalized":true,
"voided":false,
"profit":194.3
}Simple application that takes the finalized and voided attributes and mapps them to headers so that the router plugin be used to map to different log apps. This should be doable with the standard Header Processor Application This can be downloaded with the custom spring initializer
We will use the standard filter application with a spel expression to route based on header values set in the custom-header-processor
We will use the standard log application to log each type of messsages.
This will be a definition file that creates the stream definition.