[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-wait-for-callback":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":28,"level":32,"meta":33,"resources":34,"s3URL":40,"services":41,"simplicity":44,"stem":45,"testing":46,"type":50,"usecase":51,"videoId":27,"__hash__":52},"workflows\u002Fworkflows\u002Fwait-for-callback.json","Wait for callback",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbenjamin-smith.json",{"text":13},[14],"sam deploy --guided","Pause a workflow indefinitely until a task token is returned.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fwait-for-callback.png","json","AWS SAM",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fwait-for-callback\u002F","wait-for-callback","template.yaml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31],"For example, a task might require human approval, integrate with a third party, or call a legacy system. For workflows like these, a task can pass a unique token to the service integration and pause. The task will only resume when it receives the task token back with a SendTaskSuccess or SendTaskFailure call. To see a list of the integrated services that support Wait for Callback (.waitForTaskToken), see Optimized integrations for Step Functions.","100",{},{"headline":35,"bullets":36},"Additional resources",[37],{"text":38,"link":39},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fworkflows\u002Fwait-for-callback\u002Fcloudformation.yml",[42,43],"sns","sqs","1 - Fundamental","workflows\u002Fwait-for-callback",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Standard","Team Collaboration","YaEsNOe4QUIBBrQtbwhDA433W9D-cnTtdLi_a03RgE4",1782233471991]