A Node.js Framework for building workflows on Amazon SWF
This toolkit provides a collection of command-line utilities to interact with the Amazon Simple Workflow (SWF) service. They form a framework for writing and running Amazon SWF activities & deciders in Javascript.
pretty dumb, an activity is just a function call EXCEPT: does not have to send a response right away ! ( very long tasks ! )
IMPORTANT: fundamental difference with script: the decider is called many times through the workflow execution. It is STATELESS. Instead, we must inspect the event history of the workflow, and make our decisions (simplified using aws-swf decision task API)
swf-activity
swf-decider
swf-register
swf-start
DONE in decompose-process: add a "condition" method in step configuration
swf-decider: add 'helpers' methods to the sandbox (by activity) ex: if the activityType: 'mturk' as been executed it loads activities/mturk
Activity-Type-Configuration-Details when registering a new ActivityType ( using activityTypeOptions.json, if exists )
options for default workflow parameters (workflowOptions.json, if exists) => no need to set them in start_childworkflow
$ [sudo] npm install -g aws-swf-toolkit