You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.
Reza Akhavan edited this page Jan 22, 2014
·
1 revision
The workflow utility is just an EventEmitter with some attributes and methods that are common everywhere we use it. Specifically when handling CRUD operations. The EventEmitter pattern is one way to help stay out of callback hell.
Each request is unique for the user who's making it. However when you attach variables to app they can be shared between requests. You see app is referenced/linked during the request/response life-cycle as req.app and res.app.
For example in app.js you'll notice that we setup the workflow utility once.