From 96a38aedf2a7d4f89b5aa82d0ee1d80b2cf4567e Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Thu, 9 Jan 2014 13:40:07 +0100 Subject: Set _event.content if received structure is only an atom --- src/uscxml/Interpreter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index dfd9311..8542bba 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -949,6 +949,10 @@ void InterpreterImpl::send(const Arabica::DOM::Node& element) { e.name = "error.execution"; receiveInternal(e); } + // set as content if it's only an atom + if (sendReq.data.atom.length() > 0) { + sendReq.content = sendReq.data.atom; + } } else if (sendReq.content.length() > 0) { sendReq.data = Data::fromJSON(sendReq.content); } -- cgit v0.12