1
votes

I have a spring batch boot app which takes a flat file as input . I converted the app into cloud task and deployed in spring local data flow server. Next , I created a stream starting with File Source -> tasklaunchrequest-transform -> task-launcher-local which starts my batch cloud task app .

It looks like that the File does not come into the batch app . I do not see anything in the logs to indicate that.

I checked the docs at https://github.com/spring-cloud-stream-app-starters/tasklaunchrequest-transform/tree/master/spring-cloud-starter-stream-processor-tasklaunchrequest-transform

It says

Any input type. (payload and header are discarded)

My question is how do I pass the file as payload from File Source to the Batch app which seems to be a very basic feature.

any help is very much appreciated.

1

1 Answers

1
votes

You'll need to write your own transformer that takes the data from the source and packages it up so your task can consume it.