Hi,
after the record is saved in the database, redirect the form to a control app passing the ID of the record you have to process. I use a control app and not a blank so I can show messages, and use buttons if needed.
The control app has a label with “Hey buddy, wait few seconds that I have to make a coffe break…” via ajax you call a blank app, giving as parameter the ID of the record to process, the blank app make all the things you have to do to process the record, and return json with some info as coffee rating, and a message with OK Done or “Houston, we have a problem”, anything you need to show to the user.
Bye
Vincenzo