Skip to content

Instantly share code, notes, and snippets.

@meconlin
Created August 21, 2015 01:35
Show Gist options
  • Save meconlin/aec0405da73cac6a436a to your computer and use it in GitHub Desktop.
Save meconlin/aec0405da73cac6a436a to your computer and use it in GitHub Desktop.
AWS SWF : node launch of a simple workflow
// -- ------------------------------------------
// SWF - sending work to a workflow
//
var swf = new AWS.SWF();
var params = {
domain: 'FTPToS3Domain', /* required */
workflowId: 'STRING_VALUE', /* required */
workflowType: { /* required */
name: 'FTPToS3WorkFlow.run', /* required */
version: '1.7' /* required */
},
input: 'chicken',
tagList: [
'LAMBDA',
''
/* more items */
],
taskList: {
name: 'STRING_VALUE' /* required */
},
};
swf.startWorkflowExecution(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment