[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-shared-fallback-state-jsonata":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\u002Fshared-fallback-state-jsonata.json","Shared Fallback State - JSONata",{"headline":7,"text":8},"Cleanup",[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsahithi-ginjupalli.json",{"text":13},[14],"sam deploy --guided","Fetch failed state name in JSONata StateMachine with shared fallback state for multiple task states","\u002Fassets\u002Fimages\u002Fworkflows\u002Fshared-fallback-state-jsonata.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\u002Fshared-fallback-state-jsonata\u002F","shared-fallback-state-jsonata","template.yaml","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":27},"",{"headline":29,"text":30},"How it works",[31],"This workflow shows how to fetch failed state names in JSONata StateMachine using a shared fallback state for multiple tasks. Step Functions users want to implement centralized error reporting to avoid duplicating error handling logic. While setting up shared error reporting is simple, a challenge exists: the error reporting task can access error messages but cannot determine which state triggered the error. This creates issues in workflows with many Lambda functions by making it hard to identify failure points. Using JSONata, we show how to overcome this limitation and enable error tracking.","200",{},{"headline":35,"bullets":36},"Additional resources",[37],{"text":38,"link":39},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US",null,[42,43],"sfn","lambda","2 - Pattern","workflows\u002Fshared-fallback-state-jsonata",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Standard","Error Handling","1eqUxHiLiHP1gb24RQPRLwATs9WQPj7vauqaBhQfPho",1778846889535]