From b73596b4f44942931d113036566336608d5a4f65 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Thu, 28 Apr 2016 09:22:16 +0200 Subject: Implemented 6.5.2 for params as well --- src/uscxml/Interpreter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index 596bf20..ed26561 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -2718,6 +2718,18 @@ void InterpreterImpl::finalizeAndAutoForwardCurrentEvent() { } } } + + Arabica::XPath::NodeSet params = DOMUtils::filterChildElements(_nsInfo.xmlNSPrefix + "param", invokeIter->second.getElement()); + for (size_t l = 0; l < params.size(); l++) { + Element paramElem = Element(params[l]); + if (HAS_ATTR(paramElem, "location") && + _currEvent.data.compound.find(ATTR(paramElem, "location")) != _currEvent.data.compound.end()) { + std::string location = ATTR(paramElem, "location"); + _dataModel.assign(location, _currEvent.data.compound[location]); + } + } + + } } } -- cgit v0.12