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">
<form>
<field name="input">
<prompt>You are now logged off. Goodbye</prompt>
</field>
<filled namelist="input">
<submit next="http://localhost:8080/goomzee/Voice" namelist="input"/>
</filled>
</form>
</vxml>
</send>
<target next="state_welcome" />
</transition>
</state>
=====
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
welcome.
=====
Mike
On 3/24/06 12:07 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I am a graduate student developing a testing tool for an open source software
> framework providing image-guided surgery applications (http://www.igstk.org/).
> 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="http://www.w3.org/2005/07/SCXML"
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]