0

我刚开始使用适用于 Java 的 AWS Flow Framework。本质上,我正在尝试扩展HelloWorld 教程,但遇到了困难。

autoScale在接口中定义了一个新方法,它接受String如下参数

public interface GreeterActivities {
   public String getName();
   public String getGreeting(String name);
   public void say(String what);
   public void autoScale(String groupName);
}

实施也相当简单。

最后在GreeterWorkflowImpl课堂上,我将 newTask称为如下

public void greet() {
   Promise<String> name = operations.getName();
   Promise<String> greeting = operations.getGreeting(name);
   operations.say(greeting);
   operations.autoScale("WebServerScalingGroup");
}

但我收到诸如AWS 错误代码:ValidationError、AWS 错误消息:检测到 1 个验证错误:“autoScalingGroupName”处的值 null 未能满足约束:成员不得为空等错误

关于我做错了什么的任何想法?谢谢!

4

1 回答 1

0

The error appears coming from the Auto Scaling API. It probably means that activity was successfully invoked, but an exception was thrown from its implementation. How does your activity implementation looks like? Have you tried logging the fact of activity invocation and its parameters?

于 2013-10-19T04:40:18.787 回答