I have an incoming stream that I need to transform. I would like to map each individual event into multiple events. Each new event will have its own new key. I am using a mix and match approach using both PAPI & DSL APIs. In the example shown below, the message parts is a Java Enum.
Example:
Source event
MSG_ID MSG_SOURCE MSG_Date
1 ************ 06/3/2021
2 ************ 06/03/2021
3 ************ 06/03/2021
New Events:
NEW_KEY MSG_ID MSG_SOURCE MSG_Date MSG_PART
1|MP-11 1 ************ 06/3/2021 MP-11
1|MP-12 1 ************ 06/3/2021 MP-12
1|MP-12 1 ************ 06/3/2021 MP-13
2|MP-21 2 ************ 06/3/2021 MP-21
2|MP-22 2 ************ 06/3/2021 MP-22
3|MP-31 1 ************ 06/3/2021 MP-31