Re: [Interest] Again trouble with SCXML donedata

2017-01-03 Thread Ulf Hermann

Hello,


[...]

EventConnection {

stateMachine: p.stateMachine

events: ["done.state.Leave"]

onOccurred: {

console.log("done: " + event.name + " [" + event.data + "]")

}

}

[...]



done.state.* events are internal. You can expose them using this snippet of 
scxml:







It requires the ecmascript data model and knowledge of the possible parameters, though. Also, 
 is sent with the done.state event of the parent state, not the done.state event 
for the  itself. That is, you want to listen for done.state. 
here, not done.state.Leave.

(I'm just realizing that the ftpclient example that comes with 5.8 is actually 
invalid scxml. If it wasn't, it would be a great example for how to forward 
events. So, don't look at it until it's fixed.)

regards,
Ulf
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Again trouble with SCXML donedata

2017-01-03 Thread Bublitz, Wolf
Hallo,

at the end of last year I have already ask for some help concerning the SCXML 
donedata event (was not emitted) with the former SCXML preview module of Qt 
5.7. Noch I have updated to Qt 5.8 RC but I am still facing the same problem.

I have the following final state in my state machine:










On QML side the donedata event is catched like this:

EventConnection {
stateMachine: p.stateMachine
events: ["done.state.Leave"]
onOccurred: {
console.log("done: " + event.name + " [" + 
event.data + "]")
}
}

According to the log message the state "Leave" is reached, but the 
done.state.Leave event is not triggered.

What is wrong here?

Many Thanks in advance for your help!


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.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest