I am just starting out with the AWS Flow Framework for Java. Essentially I am trying to extend the HelloWorld tutorial but have hit a wall.
I have defined a new method autoScale
in the interface which accepts a String
arguement as follows
public interface GreeterActivities {
public String getName();
public String getGreeting(String name);
public void say(String what);
public void autoScale(String groupName);
}
Implementation is fairly straight forward too.
Finally in the GreeterWorkflowImpl
class, I am calling the new Task
as follows
public void greet() {
Promise<String> name = operations.getName();
Promise<String> greeting = operations.getGreeting(name);
operations.say(greeting);
operations.autoScale("WebServerScalingGroup");
}
But I get errors such as AWS Error Code: ValidationError, AWS Error Message: 1 validation error detected: Value null at 'autoScalingGroupName' failed to satisfy constraint: Member must not be null
Any ideas on what I am doing wrong? Thanks!