I need to poll data from MongoDB, process the data, while it is being processed, I must update that status of the data in DB as "PROCESSED" using MongoDB outbound channel.
When I query the MongoDB using the inbound channel, I get a list of Objects.
I use a transformer which traverses this list and updates the status as "PROCESSING".
When I pass this updated list, wrapped as payload, to the outbound MongoDB channel, hoping it would update status if all the elements in the DB, I get an exception.
BasicDBObject can not be cast to BasicDBList
how to proceed here?