String timeoutType = attributes.getTimeoutType();
String details = attributes.getDetails();
ActivityTaskTimedOutException failure = new ActivityTaskTimedOutException(event.getEventId(),
scheduled.getUserContext(), activityId, timeoutType, details);
ExternalTaskCompletionHandle completionHandle = scheduled.getCompletionHandle();
completionHandle.fail(failure);
}
}
}
}