QScxmlInvokableService¶
The
QScxmlInvokableServiceclass is the base class for services called from state machines. More…

Synopsis¶
Functions¶
def
parentStateMachine()
Virtual functions¶
Detailed Description¶
The services are called from state machines via the mechanism described in SCXML Specification - 6.4 . This class represents an actual instance of an invoked service.
- class PySide2.QtScxml.QScxmlInvokableService(parentStateMachine, parent)¶
- Parameters:
parentStateMachine –
PySide2.QtScxml.QScxmlStateMachine
- PySide2.QtScxml.QScxmlInvokableService.id()¶
- Return type:
str
This property holds The ID of the invokable service..
The ID is specified by the
idattribute of the<invoke>element.
- PySide2.QtScxml.QScxmlInvokableService.name()¶
- Return type:
str
This property holds The name of the service being invoked..
- PySide2.QtScxml.QScxmlInvokableService.parentStateMachine()¶
- Return type:
This property holds The SCXML state machine that invoked the service..
- PySide2.QtScxml.QScxmlInvokableService.postEvent(event)¶
- Parameters:
event –
PySide2.QtScxml.QScxmlEvent
Sends an
eventto the service.
- PySide2.QtScxml.QScxmlInvokableService.start()¶
- Return type:
bool
Starts the invokable service. Returns
trueon success, orfalseif the invocation fails.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.