Created
August 21, 2015 01:35
-
-
Save meconlin/aec0405da73cac6a436a to your computer and use it in GitHub Desktop.
AWS SWF : node launch of a simple workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -- ------------------------------------------ | |
// 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