diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-21 14:33:32 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-21 14:33:32 (GMT) |
commit | 948fbc12c1b4e48a24b18a84878bd560cbaf91a7 (patch) | |
tree | 23976fb5eedfedaeadd8fed8da60aa1159f3d286 /src/uscxml/Interpreter.cpp | |
parent | 08eff21dfbdbf7d20e1b96ff2f00882ec0a87b08 (diff) | |
download | uscxml-948fbc12c1b4e48a24b18a84878bd560cbaf91a7.zip uscxml-948fbc12c1b4e48a24b18a84878bd560cbaf91a7.tar.gz uscxml-948fbc12c1b4e48a24b18a84878bd560cbaf91a7.tar.bz2 |
SMTP Invoker and "invoke.success.<INV_ID>" events when an invoker was started
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r-- | src/uscxml/Interpreter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index db24dc6..3567833 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -1132,6 +1132,12 @@ void InterpreterImpl::invoke(const Arabica::DOM::Node<std::string>& element) { LOG(INFO) << "Added invoker " << invokeReq.type << " at " << invokeReq.invokeid; try { invoker.invoke(invokeReq); + + // this is out of draft but so useful to know when an invoker started + Event invSuccess; + invSuccess.name = "invoke.success." + invokeReq.invokeid; + receive(invSuccess); + } catch(boost::bad_lexical_cast e) { LOG(ERROR) << "Exception caught while sending invoke request to invoker " << invokeReq.invokeid << ": " << e.what(); } catch(...) { |