Sorry, cant visualize it, but your flow can be look like this:
QueryDatabaseTableRecord -> Wait ->PutS3Object
-> FetchFile -> EvaluateJsonPath -> Notify
You can overhand the attribute from JSON to the waiting FlowFile.
If you need help with configuration or other stuff for this, just text me.