ProcessorContext

ProcessorContext

new ProcessorContext(name, credentials, cbopt)

The context passing through the processors
Parameters:
Name Type Attributes Description
name string The process name. This should be unique and with no special characters as it is used for the temp folder to hold the achive files.
credentials object The dropbox credentials
Properties
Name Type Description
key string The dropbox application key
secret string The dropbox application secret
token string The dropbox application token
cb ProcessorContext~callback <optional>
The onComplete callback function
Properties:
Name Type Attributes Description
name string The process name. This should be unique and with no special characters as it is used for the temp folder to hold the achive files
date date The date created, used in many cases for the archive name
credentials object The dropbox credentials
Properties
Name Type Description
key string The dropbox application key
secret string The dropbox application secret
token string The dropbox application token
callback ProcessorContext~callback <optional>
The onComplete callback function

Methods

error(err)

Log an error to console
Parameters:
Name Type Description
err string The error

log(message)

Log a message to console
Parameters:
Name Type Description
message string The message

Type Definitions

callback(err)

Parameters:
Name Type Description
err Error The error occured