This is a transformation using concept of Content Enricher Pattern: Below example take 2 payloads that stored in 2 variables (input1, input2).input1 is payload send from source system.input2 is payload externally get from external system via API call. input1 contain