commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Sparr -" <>
Subject Re: [SCXML] Help with sending events
Date Fri, 24 Mar 2006 20:13:52 GMT
Below is an example of how we use SCXML.  You can declare the event in the
<send> tag and it is sent.  Of course each implementation of the executor
varies, but maybe this will help.


  <state id="state_logoff" final="true">

    <transition event="menu" >
      <send target="http://localhost:8080/goomzee" targettype="client"
event="menu" delay="0" hints="" sendid="2345">
<vxml version="2.0">


<field name="input">

<prompt>You are now logged off.  Goodbye</prompt>


<filled namelist="input">
<submit next="http://localhost:8080/goomzee/Voice" namelist="input"/>



      <target next="state_welcome" />



You could alternately not include body content within sent and declare the
event as such:

<send target="http://localhost:8080/goomzee" targettype="client"
event="menu" delay="0" hints="" sendid="2345" />

For this demo script, I have a welcome state which prompts for login/logoff.
Then a login state and a logoff state that ultimately reverts back to



On 3/24/06 12:07 PM, "" <>

> Hi,
> I am a graduate student developing a testing tool for an open source software
> framework providing image-guided surgery applications (
> State machines are used to ensure the stability of the components in this
> framework. We are very interested in using SCXML engine for the test suite.
> My problem is that, I am having trouble triggering the events in order to make
> transitions. Using the ³fireEvent² method I am able to achieve this, but I
> would like to use <send> to send the events. Right now, although the send gets
> called during the scxml execution, the transition does not happen whether I
> call it from the same session or externally.
> My scxml file looks something like this:
> <?xml version="1.0"?>
> <scxml xmlns=""
> version="1.0"
>        initialstate="NullImageSpatialObjectState">
> <state id="NullImageSpatialObjectState">
> <transition event=" validImageSpatialObjectInput">
> <target next="ValidImageSpatialObjectState"/>
> </transition>
> </state>
>         ŠŠŠŠŠŠŠŠŠ
> </scxml>
> I am using 
> <send  targettype="scxml" event="validImageSpatialObjectInput"/> to send the
> validImageSpatialObjectInput event.
> I am a little confused as to how <send> works.
> Any help is appreciated.
> Thank you,
> shylaja
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message