These can quite possibly be dismissed as a mater of preference, but two things come to mind:
Look into the “persist” and “persistStruct” arguments to the setNextEvent() method to do it all in one fell swoop.
event.getValue() allows you to specify a default value as the second argument which can clean up your structKeyExists lines.
I suggest flash ram. Flash ram also have methods to persist the objects longer than 1 request or make it where you manage the life span of it. I suggest digging in the API for the arguments to use.
Luis F. Majano
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
IECFUG Manager: http://www.iecfug.com
Thanks for the suggestions guys… this is looking cleaner!
- I will save a new category or update an existing one