diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-09 12:40:07 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-09 12:40:07 (GMT) |
commit | 96a38aedf2a7d4f89b5aa82d0ee1d80b2cf4567e (patch) | |
tree | 3053234a770e7022bfc92058bef08b81d4ce03f6 /src/uscxml | |
parent | 8d1f0d8cd595c5e9690b2745ec89a955bf9e397e (diff) | |
download | uscxml-96a38aedf2a7d4f89b5aa82d0ee1d80b2cf4567e.zip uscxml-96a38aedf2a7d4f89b5aa82d0ee1d80b2cf4567e.tar.gz uscxml-96a38aedf2a7d4f89b5aa82d0ee1d80b2cf4567e.tar.bz2 |
Set _event.content if received structure is only an atom
Diffstat (limited to 'src/uscxml')
-rw-r--r-- | src/uscxml/Interpreter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<std::string>& 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); } |