Rahul, 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"> <origin>Boston</origin> <destination>Denver</destination> </emma:interpretation> <emma:interpretation id="int2" emma:confidence="0.68" emma:tokens="flights from austin to denver"> <origin>Austin</origin> <destination>Denver</destination> </emma:interpretation> </emma:one-of> </emma:emma> 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. [1] http://www.w3.org/TR/emma