I am working with amazon-swf.
I have 4 activities. They are all asynchronous.
The workflow is started from the frontend via a rest api call.
I want to return the results of all 4 activities as the response to the api call.
Since the @execute method cannot return anything apart from void when called from the external client, I am not able to get the result of all 4 activities in my workflow starter program.
One way to solve the problem was to keep polling the workflow history in the starter program, but I really don't think that is best solution. So, what is the efficient way to do it? I am sure almost everyone who uses amazon-swf has a similar use-case.
PS: Rest of my program works fine. I get the results of the all activities in the decider's implementation. But I just can't get them in the program that started the workflow.