|
Revision 336, 0.6 kB
(checked in by scorfield, 2 years 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 | // <reactor: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 #fb_.verbInfo.attributes.bean#.save() />'); |
|---|
| 15 | fb_appendLine('<cfset myFusebox.trace("Reactor","Saved Record") />'); |
|---|
| 16 | |
|---|
| 17 | } else { |
|---|
| 18 | } |
|---|
| 19 | </cfscript> |
|---|