Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: FSM Injector  (Read 6451 times)
MrMastermind
Newbie
*
Posts: 3


View Profile Email
« 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?

Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
MrMastermind
Newbie
*
Posts: 3


View Profile Email
« Reply #2 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
Logged
Pages: [1]
Print