Howdy all,

I have a question about how to manage the flow control of my application.

Right now i have an application using (machII 1.8, coldspring).  the idea 
of my application is that i need to receive a web request, generate a 
custom pdf file and then respond with a url so that the requester can 
download the file OR email the file.

So the flow is:
  1. receive web service request for file
  2. do search for information
  3. put the search results together (display stuff),  and write file
  4.  record the location of the file, do some extra processing
  4. send email or send back a web service response with  the location of 
the file.

So... the portion where i'm putting together the search results seems like 
it should probably be in a view, but at this point, i have the webservice 
response in a view, and the the other stuff in listeners and services.  So 
i'm just wondering, what would be the best way to write out the search 
results, which seems like it should be in a view, because it's display 
code.

So question is, how do i do the flow control in the application to make 
this happen?   is it possible to do?

below is a snippet of my mach-ii.xml file.  I have events being fired off 
to go from one listener to another the flow is 

   receivesms, then forward to dosearch, which then  conditionally goes to 
either replywithsms or replywithemail  I was originally planning on having 
the write a file piece in a service object that writes it out from within 
the searchListener.

        <event-handler event="receiveSms" access="public">
            <notify listener="SmsListener" method="doReceiveMessage"/>
        </event-handler>

        <event-handler event="doSearch" access="public">
            <notify listener="SearchListener" method="doSearch"/>
        </event-handler>
        
        <event-handler event="replyWithSms" access="public">   
            <notify listener="SmsListener" method="doReplyWithMessage"/>
            <view-page name="RestResponse"/>
        </event-handler>
        
        <event-handler event="replyWithEmail" access="public">
            <notify listener="EmailListener" method="doSendMessage"/>
            <view-page name="EmailSentResponse"/>
        </event-handler>

thanks for the help!

Jon Hirschi

-- 
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to