PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: MrMastermind on March 05, 2009, 07:06:12



Title: FSM Injector
Post by: MrMastermind on March 05, 2009, 07:06:12
In a current application I see the XML for the stateMachine growing explosively, because a lot of transistion actions need to be duplicated to be available in all states.
Does anyone know a solution to have these transition actions only once in the XML but available in all the states?



Title: Re: FSM Injector
Post by: puremvc on March 05, 2009, 08:10:41
Perhaps I can modify the XML schema for the FSM injector to additionally allow definition of  transitions that are crosscutting all or many states. For instance, in an AIR app, I'd like to leave a URLMonitor running and any time the app goes offline, regardless of what state its in, I'd like it to transition to the 'offline' state. So I'd currently need to define that transition for every state.

I'll ruminate on this a bit and get back to you.

-=Cliff>


Title: Re: FSM Injector
Post by: MrMastermind on March 05, 2009, 08:30:43
Thanks Cliff. I'll watch the forum :)

For now we'll loop through the XML and add common transition nodes to the state nodes before calling the FSMInjector.

Cheers,
Marco