in src/main/java/com/amazonaws/services/simpleworkflow/flow/pojo/POJOActivityImplementationFactory.java [322:353]
private static ActivityType getActivityType(String interfaceName, Method activity, Activity activityAnnotation,
ParentInterfaceOptions parentOptions) {
String activityName = null;
String activityVersion = null;
if (activityAnnotation != null) {
if (!nullOrEmpty(activityAnnotation.name())) {
activityName = activityAnnotation.name();
}
if (!nullOrEmpty(activityAnnotation.version())) {
activityVersion = activityAnnotation.version();
}
}
if (activityName == null) {
if (!nullOrEmpty(parentOptions.getPrefix())) {
activityName = parentOptions.getPrefix() + activity.getName();
}
else {
activityName = interfaceName + "." + activity.getName();
}
}
if (activityVersion == null) {
if (!nullOrEmpty(parentOptions.getVersion())) {
activityVersion = parentOptions.getVersion();
}
else {
throw new IllegalArgumentException("No version found for activity defined by " + activity);
}
}
return ActivityType.builder().name(activityName).version(activityVersion).build();
}