root / framework / trunk / extensions / lexicon / orm / transfer / save.cfm

Revision 336, 0.7 kB (checked in by scorfield, 1 year ago)

Shuffled all the sample lexicons into the new extensions directory and added the assertions
plugin. This is in preparation for the Fusebox 6 theme are extending through extensibility.
Note that the release script has not been updated so this is a stable BER.

Line 
1<cfscript>
2        // usage:
3        //              <transfer:save bean="thisTask" />
4        if (fb_.verbInfo.executionMode is "start") {
5                // validate attributes
6                // bean - string
7                if (not structKeyExists(fb_.verbInfo.attributes,"bean")) {
8                        fb_throw("fusebox.badGrammar.requiredAttributeMissing",
9                                                "Required attribute is missing",
10                                                "The attribute 'bean' is required, for a 'save' verb in fuseaction #fb_.verbInfo.circuit#.#fb_.verbInfo.fuseaction#.");
11                }
12               
13                // generate code:
14                fb_appendLine('<cfset myFusebox.getApplication().getApplicationData().transferFactory' &
15                                '.getTransfer().save(#fb_.verbInfo.attributes.bean#) />');
16                fb_appendLine('<cfset myFusebox.trace("Transfer","Saved Bean") />');
17
18        } else {
19        }
20</cfscript>
Note: See TracBrowser for help on using the browser.