I have an activity that schedules an operation for an external API, and then should continue only when this external API ends, which is indicated by an event. I am currently using NativActitivy.
My idea would be to set a bookmark and then register an event handler that will trigger the bookmark. Unfortunately, it seems that I cannot resume the bookmark with context.
What is the best way to do this?
The flow is as follows: * Getting started * Task assignments for the external completion of the API. * Avtiovity calls an external API and registers an event handler * An activity event handler listens for all completion events until the correct one appears (there is a parameter that identifies which request was completed) * Then the activity resumes the bookmark and ends.
Does anyone have some sample code for this? I am currently using natie activity, but I want to change.
source share