Skip to content

Instantly share code, notes, and snippets.

@kennetham
Created May 12, 2018 14:22
Show Gist options
  • Save kennetham/a9dbaeb7567c07406d1a33656352be8c to your computer and use it in GitHub Desktop.
Save kennetham/a9dbaeb7567c07406d1a33656352be8c to your computer and use it in GitHub Desktop.
Orchestrator Function
const df = require("durable-functions");
module.exports = df(function*(context){
context.log("Starting chain sample");
const output = [];
output.push(yield context.df.callActivityAsync("E1_SayHello", "Tokyo"));
output.push(yield context.df.callActivityAsync("E1_SayHello", "Seattle"));
output.push(yield context.df.callActivityAsync("E1_SayHello", "London"));
return output;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment