User bio
404 bio not found
Member since Dec 4, 2015
Replies:

I find this kind of workflow easier to implement using the graphical Business Process (BPL) editor.

In BPL you'd use a Call element to invoke your Business Operation asynchronously, and a Sync element to catch the response message when it's sent back later.  You can do other processing between those elements, such as making other Calls.

Here's a link to documentation that provides an example of making 2 concurrent async calls to Business Operations, waiting for both of them to return, then deciding what to do next based on content of the responses.

https://docs.intersystems.com/iris20252/csp/docbook/DocBook.UI.Page.cls?...

If you prefer code, you'll need to implement onResponse in your Business Process.  That will be called by the framework when the async response comes back from your Operation. I don't think you'd want to branch back to onRequest from there however.  You'd just put the logic to handle the response in onResponse.

Certifications & Credly badges:
Clayton has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
Clayton has no followers yet.
Following:
Clayton has not followed anybody yet.