2015-07-10 26 views
0

我的工作流程(比如工作流)已得到註冊的一些活動(比如ActivityA等)亞馬遜SWF:活動類型沒有被活動工人支持

我收到以下錯誤,當我的工作流程exectutes:

com.amazonaws.services.simpleworkflow.flow.ActivityTaskFailedException: Activity type "{Name: "AcitivityA", Version: 1.0}" is not supported by the ActivityWorker. 

Possible cause is activity type version change without changing task list name. Activity types registered with the worker are: [{Name: "WorkflowB" for activityId="1" of activityType={Name: "ActivityA", Version: 1.0} 

不確定乳清「WorkflowB」出現在錯誤中。 這種錯誤的可能原因是什麼? 任何輸入讚賞。我是SWF新手。

謝謝

回答

0

會猜測您的工作人員正在使用不同的任務列表。 也要猜測,在此上下文中,錯誤消息中的WorkflowB是任務列表,而不是實際的工作流程。

http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-task-lists.html

仔細檢查建築工人,當您正在使用的任務列表。 也請注意,一旦你註冊了一個活動,你就不能改變你正在使用的參數。您可能首先使用默認任務列表註冊了活動,之後您已更改代碼中的任務列表。這是行不通的。 SWF將保留該活動版本的舊默認任務列表