Add a getResult function to WorkflowCompleted class