Same question posted at amazon aws forums . Their is no clear documentation on AWS Simple Workflow Framework. You can check here
AWS Workflow executes Asynchronously so that why generated code return type is void. IF you want then you can get by using
GetWorkflowExecutionHistoryRequest historyRequest = new GetWorkflowExecutionHistoryRequest();
historyRequest.setDomain(domain);
historyRequest.setExecution(workflowExecution);
historyRequest.setReverseOrder(true);
History workflowExecutionHistory = service.getWorkflowExecutionHistory(historyRequest);
If you want result then Just create a thread and when result populates in method you will get data . But this is not good way to run thread continuously.