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.
- aws-swf: Node.js Library for Amazon SWF
- aws-swf-activities: A collection of Node.js activity workers for Amazon SWF
pretty dumb, an activity is just a function call EXCEPT: does not have to send a response right away ! ( very long tasks ! )
- config.example.js
- package.json
- activities run method
- SOON: something for input/output variables schema ? (json-schema ?)
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)
- package.json
- JS description of the workflow
-
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
- Run the demo with the Quickstart Guide
- The Wiki contains links to all the documentation
- Write SWF deciders in javascript
- Write SWF activities in javascript
- A collection of ready-to-use activities
$ [sudo] npm install -g aws-swf-toolkit