Section 8: Preparing the Fuseaction

Section 8 of the core file prepares the compound fuseaction to be handled separately as a circuit and a fuseaction. We have stripped the error-handling code from this section for compactness in this text. We will go back and cover it fully later. Here is section 8 from the core file:

<cfscript> 
FB_.rawFA = attributes.fuseaction; 
if (ListLen(FB_.rawFA, '.') is 1 and Right(FB_.rawFA,1) is '.') 
  fusebox.fuseaction = "fusebox.defaultfuseaction"; 
else 
  fusebox.fuseaction = ListGetAt( FB_.rawFA, 2,  '.' ); 
fusebox.circuit = ListGetAt( FB_.rawFA, 1, '.'); 
fusebox.TargetCircuit=fusebox.circuit; 
</cfscript> 

This is the first section of the core that is mostly CFScript. Why isn’t more of the core in CFScript?

More of ...

Get Fusebox: Developing ColdFusion® Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.