prefuseaction using do

View: New views
5 Messages — Rating Filter:   Alert me  

prefuseaction using do

by Michael Traher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you use <do> to call fuseaction A from fuseaction B, will any
prefuseaction code be run before the do?
 so
 prefuseaction
fuseaction B
do fuseaction A
postfuseaction
 or
 prefuseaction
fuseaction B
prefusaction
do fuseaction A
postfuseaction
postfuseaction ??
 (not to mention postfuseaction!!)
 Thanks
Mike


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6811
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

RE: prefuseaction using do

by Sandra Clark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If they are both in the same circuit than prefuseaction will run prior to
both A and B and postfuseaction will run after each.

<prefuseaction>
        <set name="prefuese" value="1" />
</prefuseaction>
<fuseaction name="a">
        <do action="b" />
</fuseaction>
<fuseaction name="b" />
        <set name="b" value="2" />
</fuseaction>

Trace From circuit.fuseaction=a
        Prefuseaction (initial Call)
        Fuseaction A  (run)
        Prefuseaction (call from A to B)
        Fuseaction B (run)
        Post Fuseaction (after B)
        Post Fuseaction (after A)


-----Original Message-----
From: Michael Traher [mailto:michael.traher@...]
Sent: Tuesday, August 16, 2005 10:23 AM
To: Fusebox
Subject: prefuseaction using do

If you use <do> to call fuseaction A from fuseaction B, will any
prefuseaction code be run before the do?
 so
 prefuseaction
fuseaction B
do fuseaction A
postfuseaction
 or
 prefuseaction
fuseaction B
prefusaction
do fuseaction A
postfuseaction
postfuseaction ??
 (not to mention postfuseaction!!)
 Thanks
Mike




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6812
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: prefuseaction using do

by Michael Traher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you.

On 8/16/05, Sandy Clark <sllists@...> wrote:

>
> If they are both in the same circuit than prefuseaction will run prior to
> both A and B and postfuseaction will run after each.
>
> <prefuseaction>
> <set name="prefuese" value="1" />
> </prefuseaction>
> <fuseaction name="a">
> <do action="b" />
> </fuseaction>
> <fuseaction name="b" />
> <set name="b" value="2" />
> </fuseaction>
>
> Trace From circuit.fuseaction=a
> Prefuseaction (initial Call)
> Fuseaction A (run)
> Prefuseaction (call from A to B)
> Fuseaction B (run)
> Post Fuseaction (after B)
> Post Fuseaction (after A)
>
>
> -----Original Message-----
> From: Michael Traher [mailto:michael.traher@...]
> Sent: Tuesday, August 16, 2005 10:23 AM
> To: Fusebox
> Subject: prefuseaction using do
>
> If you use <do> to call fuseaction A from fuseaction B, will any
> prefuseaction code be run before the do?
> so
> prefuseaction
> fuseaction B
> do fuseaction A
> postfuseaction
> or
> prefuseaction
> fuseaction B
> prefusaction
> do fuseaction A
> postfuseaction
> postfuseaction ??
> (not to mention postfuseaction!!)
> Thanks
> Mike
>
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6813
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: prefuseaction using do

by Damien McKenna-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> -----Original Message-----
> From: Sandy Clark [mailto:sllists@...]
>
> If they are both in the same circuit than prefuseaction will
> run prior to both A and B and postfuseaction will run after each.

In that case, what is the best way of doing once-only circuit-level
prefuseactions?

--
Damien McKenna - Web Developer - Damien.McKenna@...
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include <stdjoke.h>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6814
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

RE: prefuseaction using do

by Sandra Clark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Make sure you have calls from public circuits only to internal circuits. MVC
helps in this regard.

Controller
<circuit access="public">
        <prefuseaction></prefuseaction>
        <fuseaction name="a">
                <do action="model.b" />
        </fuseaction>
        <postfuseaction></postfuseaction>
</circuit>

Model
<circuit access="internal">
        <fuseaction name="b"><fuseaction>
</circuit>

Trace from controller.a
 Prefuseaction
        Fuseaction a
        Fuseaction model.b
Post Fuseaction

 

-----Original Message-----
From: Damien McKenna [mailto:dmckenna@...]
Sent: Tuesday, August 16, 2005 12:51 PM
To: Fusebox
Subject: RE: prefuseaction using do

> -----Original Message-----
> From: Sandy Clark [mailto:sllists@...]
>
> If they are both in the same circuit than prefuseaction will run prior
> to both A and B and postfuseaction will run after each.

In that case, what is the best way of doing once-only circuit-level
prefuseactions?

--
Damien McKenna - Web Developer - Damien.McKenna@... The Limu
Company - http://www.thelimucompany.com/ - 407-804-1014 #include <stdjoke.h>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6815
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54