diff options
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(...) { |