PySide6.QtScxml.QScxmlInvokableService

class QScxmlInvokableService

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

Inheritance diagram of PySide6.QtScxml.QScxmlInvokableService

Synopsis

Properties

Methods

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

The services are called from state machines via the mechanism described in SCXML Specification - 6.4 <invoke> . This class represents an actual instance of an invoked service.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property idᅟ: str

This property holds The ID of the invokable service..

The ID is specified by the id attribute of the <invoke> element.

Access functions:
property nameᅟ: str

This property holds The name of the service being invoked..

Access functions:
property parentStateMachineᅟ: QScxmlStateMachine

This property holds The SCXML state machine that invoked the service..

Access functions:
__init__(parentStateMachine, parent)
Parameters:
abstract id()
Return type:

str

Getter of property idᅟ .

abstract name()
Return type:

str

Getter of property nameᅟ .

parentStateMachine()
Return type:

QScxmlStateMachine

Getter of property parentStateMachineᅟ .

abstract postEvent(event)
Parameters:

eventQScxmlEvent

Sends an event to the service.

abstract start()
Return type:

bool

Starts the invokable service. Returns true on success, or false if the invocation fails.