new ActivityTask(task)
The context for the execution of the activity
Parameters:
| Name | Type | Description |
|---|---|---|
task |
string | The raw `aws-swf` activity task |
- Source:
Methods
-
failed(name, err, retriable, cb)
-
Execute if the activity failed
Parameters:
Name Type Argument Description namestring A unique name for the failure errobject <optional>
The reason for the failure retriableboolean <optional>
A hint to if the activity should be attempted again cbfunction <optional>
Callback to run once we have successfuly informed SWF of our status - Source:
-
success(output, cb)
-
Execute once the activity has completed successfuly
Parameters:
Name Type Argument Description outputobject The results of the activity, if any cbfunction <optional>
Callback to run once we have successfuly informed SWF of our status - Source: