Amazon Simple Workflow Service
Developer Guide (API Version 2012-01-25)

Registering an Activity Type with Amazon SWF

The following example registers an activity type by using the Amazon SWF API. The name and version that you specify during registration form a unique identifier for the activity type within the domain. The specified domain must have already been registered using the RegisterDomain action.

The timeout parameters in this example are duration values specified in seconds. You can use the duration specifier NONE to indicate no timeout. RegisterActivityType { "domain" : "867530901", "name" : "activityVerify", "version" : "1.0", "description" : "Verify the customer credit", "defaultTaskStartToCloseTimeout" : "600", "defaultTaskHeartbeatTimeout" : "120", "defaultTaskList" : { "name" : "mainTaskList" }, "defaultTaskScheduleToStartTimeout" : "1800", "defaultTaskScheduleToCloseTimeout" : "5400" }

See Also

RegisterActivityType in the Amazon Simple Workflow Service API Reference

On this page: