Marc,

It's the expected behavior and has been for versions 2 and 3 at least.

The documentation on it is here:
http://docs.model-glue.com/wiki/ReferenceMaterials/ModelGlueXmlReference#result
On Jun 6, 2012 8:15 AM, "marc" <[email protected]> wrote:

> Hi,
>
> Just confirming:
>
> I use event.addResult() to have a redirection as in
>
> <cffunction name=...>
> ....(cf code)...
> arguments.event.addResult
> ...(more cfcode)...
> </cffunction>
>
> I expect the current handler to finish completely and _then_ do the action
> specified in ModelGlue.xml for the given result.
> But it seems that as soon as event.addResult is encountered, the rest of
> the method is not executed. Instead execution continues from the <result
> name="error" do...> clause in the Modelglue.xml.
> I found this out after I put a <cfdump><cfabort> directly after the
> addresult. It never gets executed. If I put it before addresult(), it does
> show output.
>
> Is this done to prevent multiple addResult() complicating the flow? I
> expected this to be mentioned in the docs.
>
> Marc
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to