PySide6.QtScxml.QScxmlInvokableService¶
- class QScxmlInvokableService¶
- The - QScxmlInvokableServiceclass is the base class for services called from state machines. More…- Synopsis¶- Properties¶- idᅟ- ID of the invokable service
- nameᅟ- Of the service being invoked
- parentStateMachineᅟ- SCXML state machine that invoked the service
 - Methods¶- def - __init__()
 - Virtual methods¶- def - id()
- def - name()
- def - postEvent()
- def - start()
 - 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_propertyis used or via accessor functions otherwise.- property idᅟ: str¶
 - This property holds The ID of the invokable service.. - The ID is specified by the - idattribute 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:
- parentStateMachine – - QScxmlStateMachine
- parent – - QScxmlInvokableServiceFactory
 
 
 - abstract id()¶
- Return type:
- str 
 
 - Getter of property - idᅟ.- abstract name()¶
- Return type:
- str 
 
 - Getter of property - nameᅟ.- parentStateMachine()¶
- Return type:
 
 - Getter of property - parentStateMachineᅟ.- abstract postEvent(event)¶
- Parameters:
- event – - QScxmlEvent
 
 - Sends an - eventto the service.- abstract start()¶
- Return type:
- bool 
 
 - Starts the invokable service. Returns - trueon success, or- falseif the invocation fails.