Then from Java, create the activity interface and implementation and register it in the worker listening in the appropriate taskqueue (“java-taskQueue” for this example)
@ActivityInterface
public interface GreetingActivities {
@ActivityMethod(name = "greet") //you may need to set the activity name to be the same as your ts activity
String composeGreeting(String greeting);
}