thanks for the quick reply! I'll start going down that route then.
jon ---------------------------------------- From: "Jon Hirschi" <[email protected]> Sent: Thursday, April 07, 2011 6:50 PM To: [email protected] Subject: Re: [Mach-II] redirect event without 302 thanks for the reply. i don't want it to just stop, what i'd like it to do is to stop processing the rest of the event. that is the event comes in on one event but then i need to have it stop processing any of the rest of the event and only process the new event. ie. the normal flow of things is: request comes in for event "A" do a search and obtain results, write a report, etc send response back to requester however, if i get a parameter of a certain type, ie searchstring of "help" what i'd like to do is change the flow so that it doesn't do the search, or write the report and sends back a different kind of response. so that the flow would be more like: request comes in for event "a" parameter matches -- announce new event (event b), send response back to requester (don't do search or write report) What i wanted to avoid was having to check in every other listener to see if that search parameter was help or whether or not the listener needed to run. the redirect event was working for that purpose, but then i found out that it's not going to work for the people we need to integrate with. so i was trying to see if there's an alternative that doesn't do the 300 redirect. My understanding is that if i did an annouceevent and then i did a cfabort, that it would kill both the new event and the old event. is that correct? thanks. ---------------------------------------- From: "Peter Farrell" <[email protected]> Sent: Thursday, April 07, 2011 5:30 PM To: [email protected] Subject: Re: [Mach-II] redirect event without 302 Any redirect going to send a 301, 302 and 303. If you want things to just stop... cfabort will do it. Sounds like you don't want a redirect at all. On Apr 7, 2011 5:48 PM, "Jon Hirschi" <[email protected]> wrote: > > Hey guys, > > I have question. is there a way to redirect an event without causing a 302 > redirect? what i want to do is when i get a keyword, i want to stop the > processing of the event that i'm processing, but i can't have the 302 > redirect. just any ideas on how to get around that? > > this is what i'm currently doing: > > // code snippet below > if ( arguments.event.getArg("body") eq "help" ) { > redirectEvent("smshelp",arguments.event); > return true; > } else if ( listfindnocase('stop,end,cancel,stop > all,quit,unsubscribe',arguments.event.getArg("body"))) { > redirectEvent("smsStop",arguments.event); > return true; > } > > any other options available? > > thanks! > > -- > To post to this group, send email to [email protected] > For more options and to unsubscribe, 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/ -- To post to this group, send email to [email protected] For more options and to unsubscribe, 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/ -- To post to this group, send email to [email protected] For more options and to unsubscribe, 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/ -- To post to this group, send email to [email protected] For more options and to unsubscribe, 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/
