commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingmar Kliche" <>
Subject [SCXML] Inject external event with XML payload () into SCXML engine
Date Thu, 05 Jul 2007 16:47:41 GMT

I would like to inject events with XML payload into the SCXML engine.
Currently we have to convert XML represented messages received from external
components into a hashmap object to fire the event into the engine. But this
does not allow to include XML attributes easily. Suppose we have an event
which is represented as an EMMA string, e.g. (borrowed from [1])

<emma:emma version="1.0">
  <emma:one-of id="r1" emma:start="1087995961542" emma:end="1087995963542">
    <emma:interpretation id="int1" emma:confidence="0.75"
    emma:tokens="flights from boston to denver">

    <emma:interpretation id="int2" emma:confidence="0.68"
    emma:tokens="flights from austin to denver">

How do we pass this into the SCXML engine? My goal is to pass this XML data
into the SCXML data model and operate on the event data using XPath.

Do you have any suggestion?

- Ingmar.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message