How do we pass the array of records to http processor

asked 2021-04-01 06:51:48 -0500

Mahender gravatar image

updated 2021-04-01 09:22:23 -0500

In request data, we are giving as $(record:value('/request')- but it is only taking first record in the array input?

Kafka consumer (JSON) -->Data Generator-->JavaScript (converts the data into single array of Json and output column is 'request')--> Http client processor (expecting the data as one single request of array input)

In the request data of http client processor, we have given as $(record:value('/request') but the we are getting the error as bad request from http and if we give the value as [$(record:value('/request[0]')] for top record it is working.

But, How can we give all record values in request data?

Does htttp processor able to process the one single array of objects as input? Because same we are able to do it in the http client destination. Please let us know.

Thanks, Mahender

edit retag flag offensive close merge delete