QScxmlInvokableService

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

Inheritance diagram of PySide2.QtScxml.QScxmlInvokableService

Synopsis

Functions

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:
PySide2.QtScxml.QScxmlInvokableService.id()
Return type:

str

This property holds The ID of the invokable service..

The ID is specified by the id attribute 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:

PySide2.QtScxml.QScxmlStateMachine

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

PySide2.QtScxml.QScxmlInvokableService.postEvent(event)
Parameters:

eventPySide2.QtScxml.QScxmlEvent

Sends an event to the service.

PySide2.QtScxml.QScxmlInvokableService.start()
Return type:

bool

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