Hi Naidu,
as Schedulers allow assigning input variables since wM 9.5 it might be possible to pass the API request id there.
See IS Built-In-Services Reference for the pub.schedulers folder for further information on how to create and delete schedulers programmatically.
My idea was:
When it comes to the API call start a scheduler with run map every 1 hour, start time=now and end time=“now+10 hours”.
When API call was positive, publish a document back to the process with correlation signalling the success and delete the scheduler.
In the model, after the API-Step (non-blocking in this case as the scheduled service runs outside of the process engine) place an and-join waiting for the published document for the correlation.
So you might have several of theses schedulers running in parallel, but you do not require TaskEngine for this which might be a little bit oversized.
Regards,
Holger
#BPM#webMethods-BPMS#webMethods