Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
We want fuses to be code "black boxes" that we can use without having to open them up to modify code for reuse. One way we improve reuse is by replacing all hardcoded exit points with variables called Exit Fuse Actions (XFAs). This way the exit point can be defined in the fbx_switch.cfm file (for Fusebox 3) or the circuit.xml file (for Fusebox 4) and the fuse "rewired" from the outside if it is moved to another application. Compare this to traditional CF coding practice where to reuse code you often have to edit all the code to change the URLs, Form submit and other exit points to the new directory structure. Additionally it documents the exits points in the switch file so that all flow control is visible there. Note that XFA are usually given names like XFA.success and in ColdFusion MX these automatically become a structure XFA instead of just being a variable called "XFA.success" as they would be in earlier versions of ColdFusion. This doesn’t seem to cause any problems with using them and could come in handy if you wanted to loop over all available XFAs.
Read more »