Class: ActivityTask

ActivityTask

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
name string A unique name for the failure
err object <optional>
The reason for the failure
retriable boolean <optional>
A hint to if the activity should be attempted again
cb function <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
output object The results of the activity, if any
cb function <optional>
Callback to run once we have successfuly informed SWF of our status
Source: