alex
alex

Reputation: 23

How to raise/send an event from within the <script> element of SCXML in Qt

There is a __Raise() function according to this reference, that would allow us to raise/send "events" from within the script elements of SCXML using ECMAScript:

This function is the ECMAScript equivalent to the raise element. It allows an application to raise an event which can be used to direct the execution flow of an SCXML strategy.
Usage:

__Raise(expr)
__Raise(expr, data)
__Raise(expr, delay)
__Raise(expr, data, delay)

But my experiments with Qt’s SCXML module were unsuccessful and the corresponding event would not be triggered:

<state id="State_3">
…
<onexit>
    …
    <script>__Raise(‘myEvent’)</script>
</onexit>
</state>

Is this function (__Raise) supported in Qt’s SCXML module? Or am I doing sth. wrong?

Upvotes: 1

Views: 274

Answers (0)

Related Questions