Asynchronous API call from interface and follow up API to get the status of the job.
Hi
I have a requirement where I need to invoke an asynchronous API that returns a jobId in the response. After a certain wait time, I need to call a second API to check the status of the job by passing the jobId received from the first API. This status API should continue to be invoked at regular intervals until the job completes successfully.
All of these steps must be completed before the form is submitted, as activity chaining needs to be maintained.
Our current plan is to use a Start Process smart service to initiate the asynchronous operation and capture the process ID. I can then use Query Process Analytics at configurable refresh intervals to monitor the process status until the second API returns a successful response. Once the process completes, I can retrieve the results and display them to the user in a grid.
Is there any better approach than this /any drawback in this approach. Anyone had similar requirement? Please sugget.
