return context.getResult();
}
@Override
public void requestCancelWorkflowExecution(WorkflowExecution execution) {
RequestCancelExternalWorkflowExecutionDecisionAttributes attributes = new RequestCancelExternalWorkflowExecutionDecisionAttributes();
String workflowId = execution.getWorkflowId();
attributes.setWorkflowId(workflowId);
attributes.setRunId(execution.getRunId());
boolean childWorkflow = scheduledExternalWorkflows.containsKey(workflowId);
// TODO: See if immediate cancellation needed
decisions.requestCancelExternalWorkflowExecution(childWorkflow, attributes, null);
}