You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Anna Klisiewicz <an...@googlemail.com> on 2008/08/31 04:11:07 UTC
[SCXML] Java-scxml interaction
Hi
I don't know how to make bridging between scxml and java possible.
In my program first I run the state machine. In some of the states, I would
like to ask user questions (together with the transitions) and come back to
the execution of state machine after getting an answer. How to do it?
I tried triggering events, but I am not sure if that's the right way. What
about listener?..
Thank you, Anna
Re: [SCXML] Java-scxml interaction
Posted by Rahul Akolkar <ra...@gmail.com>.
On Mon, Sep 1, 2008 at 11:38 PM, Anna Klisiewicz
<an...@googlemail.com> wrote:
> Not actual anymore - I think I have done it with invoker.
>
<snip/>
I'm going to remain distracted for another week or so -- and in terms
of the original question(s) in this thread, I'd recommend going back
to the W3C draft, understanding the semantics of the various available
techniques (be it <send>, custom actions, <invoke> etc.) and choosing
one that is appropriate for your needs. From what you've said so far,
invoke seems to have viable semantics for the usecase.
> By the way, how to get access to datamodel? So far I was doing it in the
> same function where I was executing SCXML. now I want use them in conditions
> in Invoke function. Shall I send them by "param" or is there more
> convienient way, like "getData()" or something
>
<snap/>
Using <param> is correct, and often the only way to pass data since
the <invoke>'d service executes in its own context (i.e. has a
separate datamodel).
-Rahul
> Sorry for the spam
> Anna
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [SCXML] Java-scxml interaction
Posted by Anna Klisiewicz <an...@googlemail.com>.
Not actual anymore - I think I have done it with invoker.
By the way, how to get access to datamodel? So far I was doing it in the
same function where I was executing SCXML. now I want use them in conditions
in Invoke function. Shall I send them by "param" or is there more
convienient way, like "getData()" or something
Sorry for the spam
Anna
Re: [SCXML] Java-scxml interaction
Posted by Anna Klisiewicz <an...@googlemail.com>.
Hello,
I need this this info very much:(... I am trying to do something with
<invoke> now. Is it a good way? If yes, can I please have any examples.
Anna
2008/8/31 Anna Klisiewicz <an...@googlemail.com>
> Hi
>
> I don't know how to make bridging between scxml and java possible.
>
> In my program first I run the state machine. In some of the states, I
> would like to ask user questions (together with the transitions) and come
> back to the execution of state machine after getting an answer. How to do
> it?
>
> I tried triggering events, but I am not sure if that's the right way. What
> about listener?..
>
> Thank you, Anna
>