I handle conditional logic and use the Mach-II framework in a slightly
different manner.  I make a concerted effort to limit the number of
listeners and events registered, by only including events specific type
of events i.e. events generated by the user (form submission) or by the
application (error generation).

Otherwise much of the controller function is included in an Manager
Object which acts as a "gatekeeper and traffic controller".

An added bonus is that for future enhancements, you can leave the
machii.xml file alone (using it only for input output functions).

HTH

Sean

Kubeworks.com
(aim) Kubeworks
http://www.kubeworks.com/


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Alexander Sherwood
Sent: Tuesday, February 03, 2004 10:47 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] mach-ii.xml and conditional logic

I've done MVC development on my own before the Mach-II code was created.

In the "controller" files (switch/case statement), I follow mach-ii's 
general principles: notify listener CFCs passing values back and forth 
between events. One handy aspect of my approach is that you can embed 
conditional logic in the controller file. You can, for example, notify
two 
listeners, compare their values, and announce a new event based on the 
comparison.

Because mach-ii applications are described using XML, how does one 
implement conditional logic inside of an event handler? Do developers 
create a "Controller.cfc" that handles the event-flow logic?

Any help would be much appreciated.

----------------------------------
Alex Sherwood
PHS Collection Agency
THE COLLECTORS
T:   301.215.4200
F:   301.664.6834
W: www.phs-net.com

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to