== Why does my controller variable not get set after addResult is called? == AddResult has two different behaviors, depending on how you set the redirect attribute in the Model Glue XML. 1- If you do not set redirect, or set redirect to false, then calling addResult in a controller will queue the result and continue processing the rest of the controller body. 2- If you set redirect to true, addResult will immediately execute the result, then issue a redirect that halts all processing of the current request, and initiating a brand new request with the event specified in the 'do' attribute. While this can cause a little head scratching, this is truly useful behavior. For example, if you use a controller to figure out whether a user is logged in, you can use addResult to add an UnauthorizedUser result, with redirect="true" as part of the XML definition of course, and when this result is added, the user will immediately be taken to the Event for UnauthorizedUsers, without further processing of the initial event. Read more about the Result tag here: http://docs.model-glue.com/wiki/ReferenceMaterials/ModelGlueXmlReference#Model-GlueXMLReference