OpenRequestInfo<String, ActivityType> scheduled = scheduledActivities.remove(activityId);
if (scheduled != null) {
String result = attributes.getResult();
scheduled.getResult().set(result);
ExternalTaskCompletionHandle completionHandle = scheduled.getCompletionHandle();
completionHandle.complete();
}
}
}
void handleActivityTaskFailed(HistoryEvent event) {