[Interest] SCXML Statemachine donedata event
Bublitz, Wolf
W.Bublitz at KROHNE.com
Mon Nov 28 15:53:40 CET 2016
Hallo,
I am experimenting with the new QScxmlStateMachine. Currently I am running a state machine with JavaScript data model and I am wondering how to catch the donedata event.
For example my statemachine defines the following final state:
<final id="finished">
<donedata>
<param name="DoneValue" expr="1" />
</donedata>
</final>
According to the SCXML spec (section 3.7.2)
When the state machine enters the <final> child of a <state> element, the SCXML Processor must generate the event done.state.id<http://done.state.id/> after completion of the <onentry> elements, where id is the id of the parent state.
an event should be send when the final state is reached. My question now is, how can I catch the event on C++/QML side. I have alread tried a generice event handler like as shown below but now done event occurred.
Connections {
target: stateMachine
onEventOccurred: {
console.log(event.name)
}
}
May someone could give me a hint?
Many thanks in advance!
Wolf Bublitz
KROHNE Innovation GmbH
Ludwig-Krohne-Str. 5, 47058 Duisburg, Germany, Tel.: +49 (0) 203 301 0, Fax : +49 (0) 203 301 10 389, www.krohne.com
Sitz der Gesellschaft: Duisburg HRB 9313
Geschaeftsfuehrer: Dr. Attila Bilgic, Ingo Wald
HINWEIS
Diese E-Mail kann vertrauliche Informationen beinhalten und ist ausschliesslich fuer die im Verteiler genannten Personen bestimmt. Wenn Sie nichtim Verteiler genannt sind, lesen oder verbreiten Sie diese Informationen NICHT; loeschen Sie bitte diese E-Mail. Unsere ausgehenden E-Mailseinschliesslich deren Anlagen werden mit aktuellen Virenscannern geprueft, wir uebernehmen aber keinerlei Garantie dafuer, dass diese E-Mailvirenfrei ist. Weiterhin uebernimmt die KROHNE Innovation GmbH keinerlei Verantwortung fuer einen evtl. Schaden oder Verlust, der sich aus dem Erhaltdieser Nachricht ergibt. Falls nicht ausdruecklich vermerkt, ist diese E-Mail keine gesetzlich bindende Vereinbarung.
NOTE
The information transmitted in this email is for the person or entity to which it is addressed: it may contain information that is confidentialand/or legally privileged. If you are not the intended recipient, please do not read, use, retransmit or disseminate this information.Although this email and any attachments are believed to be free of any virus, it is the responsibility of the recipient to ensure that they are virus free.No responsibility is accepted by the KROHNE Innovation Company for any loss or damage arising from receipt of this message. Furthermore, unless explicitly stated,this email is in no way a legally binding agreement. The views represented in this email do not necessarily represent those of the corporation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161128/87e2dbf6/attachment.html>
More information about the Interest
mailing list