| By Isaac Dealey | Article Rating: |
|
| August 9, 2005 04:00 PM EDT | Reads: |
18,321 |
In order for the ruleApplies method to function properly the context CFC must provide the actual property values to the criteria-type CFCs for each downloaded email. Thus when the criteria-type CFC calls the method context.getFromHeader() the context CFC must return the "Sender" string value "s. isaac dealey <info@turnkey.to>" for any message sent by myself. This can be accomplished either by instantiating a CFC for each message and passing that CFC as an optional second argument to the RuleManager.ruleApplies() method, or a single context CFC may use an iterator property to indicate the current row of a query from which email information is retrieved. Although for this application I would recommend the latter approach for the sake of efficiency, individual context CFCs may be more appropriate for other applications.
Unfortunately the scope of this article doesn't allow me the luxury of providing a complete sample application. The sample code (which is available by viewing this article online) and the above paragraphs lack an explanation of how the folder for each filter is identified. There are several methods that could be applied, including an additional attribute in the XML node for each rule or additional structure in your database. You will need to address these details case-by-case in your applications.
Conclusion
Although I lament that this article could not examine many of the more useful nuances of the RuleManager façade it should arm you with enough information to start providing powerful self-service customization to your clients today. The previous paragraphs and code samples provide information about basic concepts, storage, formatting, user-interface and application in business-logic, as well as thorough explanations of all the necessary CFCs and methods and a step-by-step explanation of the flow of user-interface and application logic. For questions or to see a more thorough example, you may contact me directly or view the onTap framework documentation at www.fusiontap.com.
Published August 9, 2005 Reads 18,321
Copyright © 2005 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Isaac Dealey
Isaac Dealey has worked with ColdFusion since 1997 (version 3) for clients from small businesses to large enterprises, including MCI and AT&T Wireless. He evangelizes ColdFusion as a volunteer member of Team Macromedia, is working toward becoming a technical instructor, and is available for speaking engagements.
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Adobe May Cooperate with Apple to Transplant Flash Player to iPhone
- Adobe Flex Developer Earns $100K in New York City
- Adobe LiveCycle Enterprise Suite 2 for Cloud Computing
- Adobe Betas Target RIAs and Cloud Computing
- Adobe Cans Another 9% of its Workforce
- Moyea DVD4Web Converter V2.0 Converts DVD to FLV Fast and Synchronously with Watermarks
- Adobe Fiddles with its Web Apps
- Adobe & Salesforce Cut Cloud Deal
- Hosting.com Launches ColdFusion 9 in the Cloud
- The Real Time Infrastructure Ultimatum
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Eval JavaScript in a Global Context
- Fig Leaf Software to Exhibit at Government IT Conference & Expo
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Is Microsoft as Free as Open Source?
- Adobe Reader Sued
- The Planet Named “Bronze Sponsor” of Cloud Computing Expo
- Microsoft Expression Web Has Got Game
- Adobe May Cooperate with Apple to Transplant Flash Player to iPhone
- Adobe Flex Developer Earns $100K in New York City
- Bruce Chizen Joins Voyager Capital as Venture Partner
- My Top Seven Wishes From Adobe MAX 2009
- The Next Programming Models, RIAs and Composite Applications
- Where Are RIA Technologies Headed in 2008?
- Constructing an Application with Flash Forms from the Ground Up
- AJAX World RIA Conference & Expo Kicks Off in New York City
- CFEclipse: The Developer's IDE, Eclipse For ColdFusion
- Personal Branding Checklist
- Adobe Flex 2: Advanced DataGrid
- Has the Technology Bounceback Begun?
- Building a Zip Code Proximity Search with ColdFusion
- i-Technology Viewpoint: We Need Not More Frameworks, But Better Programmers
- The Asynchronous CFML Gateway
- Web Services Using ColdFusion and Apache CXF




















