{"action":"opened","issue":{"url":"https://api.github.com/repos/tklab-tud/uscxml/issues/97","repository_url":"https://api.github.com/repos/tklab-tud/uscxml","labels_url":"https://api.github.com/repos/tklab-tud/uscxml/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/tklab-tud/uscxml/issues/97/comments","events_url":"https://api.github.com/repos/tklab-tud/uscxml/issues/97/events","html_url":"https://github.com/tklab-tud/uscxml/issues/97","id":194033799,"number":97,"title":"After commit 89947b3 execution of delayed events is broken in invokers","user":{"login":"alexzhornyak","id":18611095,"avatar_url":"https://avatars.githubusercontent.com/u/18611095?v=3","gravatar_id":"","url":"https://api.github.com/users/alexzhornyak","html_url":"https://github.com/alexzhornyak","followers_url":"https://api.github.com/users/alexzhornyak/followers","following_url":"https://api.github.com/users/alexzhornyak/following{/other_user}","gists_url":"https://api.github.com/users/alexzhornyak/gists{/gist_id}","starred_url":"https://api.github.com/users/alexzhornyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexzhornyak/subscriptions","organizations_url":"https://api.github.com/users/alexzhornyak/orgs","repos_url":"https://api.github.com/users/alexzhornyak/repos","events_url":"https://api.github.com/users/alexzhornyak/events{/privacy}","received_events_url":"https://api.github.com/users/alexzhornyak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T12:12:53Z","updated_at":"2016-12-07T12:12:53Z","closed_at":null,"body":"Please, check the code below\r\n\r\n```\r\n#include \"uscxml/config.h\"\r\n#include \"uscxml/Interpreter.h\"\r\n#include \"uscxml/interpreter/InterpreterMonitor.h\"\r\n\r\nusing namespace uscxml;\r\n\r\nnamespace Scxmlsample1 {\r\n\tstatic const char *chScxml =\r\n\t\t\"<scxml initial=\\\"StateShape1\\\" name=\\\"ScxmlShape1\\\" version=\\\"1.0\\\" xmlns=\\\"http://www.w3.org/2005/07/scxml\\\">\"\r\n\t\t\"\t<state id=\\\"StateShape1\\\" initial=\\\"StateShape2\\\">\"\r\n\t\t\"\t\t<transition event=\\\"Quit\\\" target=\\\"FinalShape1\\\"/>\"\r\n\t\t\"\t\t<transition event=\\\"error.*\\\" target=\\\"FinalShape1\\\"/>\"\r\n\t\t\"\t\t<state id=\\\"StateShape2\\\">\"\r\n\t\t\"\t\t\t<onentry>\"\r\n\t\t\"\t\t\t\t<send delay=\\\"3000ms\\\" event=\\\"OnTimer\\\"/>\"\r\n\t\t\"\t\t\t</onentry>\"\r\n\t\t\"\t\t\t<transition event=\\\"OnTimer\\\" target=\\\"StateShape3\\\"/>\"\r\n\t\t\"\t\t</state>\"\r\n\t\t\"\t\t<state id=\\\"StateShape3\\\">\"\r\n\t\t\"\t\t\t<invoke autoforward=\\\"true\\\" type=\\\"scxml\\\">\"\r\n\t\t\"\t\t\t\t<content>\"\r\n\t\t\"\t\t\t\t\t<scxml initial=\\\"StateShape1\\\" name=\\\"Include\\\" version=\\\"1.0\\\" xmlns=\\\"http://www.w3.org/2005/07/scxml\\\">\"\r\n\t\t\"\t\t\t\t\t\t<state id=\\\"StateShape1\\\">\"\r\n\t\t\"\t\t\t\t\t\t\t<transition event=\\\"error.*\\\" target=\\\"FinalShape1\\\"/>\"\r\n\t\t\"\t\t\t\t\t\t\t<state id=\\\"Step1\\\">\"\r\n\t\t\"\t\t\t\t\t\t\t\t<onentry>\"\r\n\t\t\"\t\t\t\t\t\t\t\t\t<send delay=\\\"1700ms\\\" event=\\\"Timer2\\\"/>\"\r\n\t\t\"\t\t\t\t\t\t\t\t\t<log expr=\\\"'Hello from step1'\\\"/>\"\r\n\t\t\"\t\t\t\t\t\t\t\t</onentry>\"\r\n\t\t\"\t\t\t\t\t\t\t\t<transition event=\\\"Timer2\\\" target=\\\"Step2\\\"/>\"\r\n\t\t\"\t\t\t\t\t\t\t</state>\"\r\n\t\t\"\t\t\t\t\t\t\t<state id=\\\"Step2\\\">\"\r\n\t\t\"\t\t\t\t\t\t\t\t<onentry>\"\r\n\t\t\"\t\t\t\t\t\t\t\t\t<send delay=\\\"1500ms\\\" event=\\\"Timer2\\\"/>\"\r\n\t\t\"\t\t\t\t\t\t\t\t\t<log expr=\\\"'Hello from step2'\\\"/>\"\r\n\t\t\"\t\t\t\t\t\t\t\t</onentry>\"\r\n\t\t\"\t\t\t\t\t\t\t\t<transition event=\\\"Timer2\\\" target=\\\"Step1\\\"/>\"\r\n\t\t\"\t\t\t\t\t\t\t</state>\"\r\n\t\t\"\t\t\t\t\t\t</state>\"\r\n\t\t\"\t\t\t\t\t\t<final id=\\\"FinalShape1\\\"/>\"\r\n\t\t\"\t\t\t\t\t</scxml>\"\r\n\t\t\"\t\t\t\t</content>\"\r\n\t\t\"\t\t\t</invoke>\"\r\n\t\t\"\t\t</state>\"\r\n\t\t\"\t</state>\"\r\n\t\t\"\t<final id=\\\"FinalShape1\\\"/>\"\r\n\t\t\"</scxml>\";\r\n} // end namespace: Scxmlsample1\r\n\r\nint _tmain(int argc, _TCHAR* argv[])\r\n{\r\n\tInterpreter intepreter = Interpreter::fromXML(Scxmlsample1::chScxml, \"\");\r\n\r\n\tStateTransitionMonitor mon;\r\n\tintepreter.addMonitor(&mon);\r\n\r\n\tInterpreterState state = InterpreterState::USCXML_UNDEF;\r\n\r\n\twhile (state != USCXML_FINISHED)\r\n\t{\r\n\t\tstate = intepreter.step(true);\r\n\t}\r\n\r\n\treturn 0;\r\n}\r\n```"}}
{"actor":{"display_login":"alexzhornyak"}}