Class: DecisionPoller

DecisionPoller

new DecisionPoller(name, domain, options)

Represents a single, named decision poller, where all workflow versions can be created. Tasks will automaticly be routed to the first workflow that satisfies the version requested. If no valid workflow is found, the task will be marked as a failure.
Parameters:
Name Type Argument Description
name string The name of the workflow.
domain string The AWS SWF domain name to use when listening for decision tasks.
options object <optional>
Additional SWF options used when creating and executing this workflow (taskList, tagList, childPolicy, executionStartToCloseTimeout, taskStartToCloseTimeout)
Source:

Methods

execute() → {WorkflowVersion}

Execute a new run of this workflow
Source:
Returns:
This workflow so you can chain commands.
Type
WorkflowVersion

register(name, version) → {DecisionPoller}

Register a SWF Workflow
Parameters:
Name Type Description
name string The name of the workflow.
version string The AWS version of the workflow being registered.
Source:
Returns:
This Poller so you can chain commands.
Type
DecisionPoller

start() → {DecisionPoller}

Start listening for decision tasks from SWF
Source:
Returns:
This workflow poller
Type
DecisionPoller

stop() → {DecisionPoller}

Stop listening for decision tasks from SWF
Source:
Returns:
This workflow poller
Type
DecisionPoller

version(version) → {WorkflowVersion}

Get or create a new WorkflowVersion to handle the given version
Parameters:
Name Type Description
version string Version(s) this workflow can handle (conforms to v2.0 of http://semver.org)
Source:
Returns:
This workflow version so you can configure the actual decider.
Type
WorkflowVersion