Re: [scxml] Target of transition as variable?

2011-06-23 Thread Rahul Akolkar
On Tue, Jun 21, 2011 at 3:42 PM, Artem Vovk vovk.ar...@googlemail.com wrote: Can I use dynamic transition targets? Something like this? datamodel        data id=dyn_state expr=State1 /datamodel ... transition  ... target=dyn_state/ If I use it on this way, I receive an exception:

Re: [scxml] Target of transition as variable?

2011-06-23 Thread Artem Vovk
Thanks for the answer! I have also implemented on this way, but I think it makes all complicated and I see no benefits from static states I give an example where dyn states are useful and much less verbose: I have 10 basic_states that under some condition(internet is not available) can be

Re: [scxml] Target of transition as variable?

2011-06-23 Thread Rahul Akolkar
On Thu, Jun 23, 2011 at 6:46 PM, Artem Vovk vovk.ar...@googlemail.com wrote: Thanks for the answer! I have also implemented on this way, but I think it makes all complicated and I see no benefits from static states I give an example where dyn states are useful and much less verbose: I have

[scxml] Target of transition as variable?

2011-06-21 Thread Artem Vovk
Can I use dynamic transition targets? Something like this? datamodel data id=dyn_state expr=State1 /datamodel ... transition ... target=dyn_state/ If I use it on this way, I receive an exception: Transition target with ID dyn_state not found - Interpreter thinks that it is a name of