commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: [SCXML] Transition/Var question
Date Sat, 28 Feb 2009 05:20:37 GMT
On Fri, Feb 27, 2009 at 7:06 AM, Linda Erlenhov
<linda.erlenhov@gmail.com> wrote:
> Hello again!
>
>
>> <snip>
>>
>> followed by introspection like so:
>>
>>    getEngine().getRootContext().get("outcome");
>>
>> </snip>
>
> The problem with that approach is that i won´t know the names of my "var":s.
>
> The idéa is:
> I´m building an graphical editor for Statecharts, where you can model a
> statemachine with some simple drag and drop actions. When your satisfied
> with your machine the editor generates an SCXML-file which then is meant to
> be run. Everything I do has to be "generic" so what I wanted was a way to,
> when the listner registers an "onTransition" ( the class Implements the
> SCXMLListener interface) move:
> 1. Check if there is an "var" associated with that transition
> 2. If so, fetch the exp.
>
<snip/>

IIUC, for (1), introspect the Transition object (the list of actions
therein). (2) is above (replace the String constant "outcome" with the
value obtained in 1).

-Rahul


> best regards
> //Linda
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message