TransactionSupervisor#

class ansys.solutions.dash_super_components.TransactionSupervisor(url: str, step_name: str, method_name: str, title: str = 'Transaction Supervisor', show: bool = True, aio_id: str | None = None, width: str | int = 400, font_size: str = '14px', title_font_size: str = '16px', orientation: str = 'horizontal')#

Bases: Div

A Dash component for monitoring the status of a SAF GLOW transaction method.

TransactionSupervisor is based on the Dash All-in-One (AIO) component pattern. It polls the GLOW API to track method status in real time and displays elapsed time, started time, and a color-coded status badge.

Warning

This component requires a SAF-based solution with access to the GLOW API. It must be instantiated inside a callback (not directly in the layout) because it needs the project URL from DashClient.

To activate monitoring from a callback use:

TransactionSupervisor.ids.activate_monitoring(aio_id)  # Store; set "data" to True
Parameters:
urlstr

The URL of the GLOW API server.

step_namestr

The name of the GLOW step (StepModel) that contains the method.

method_namestr

The name of the GLOW transaction method whose status is being monitored.

titlestr, optional

Title displayed in the monitoring card.

showbool, optional

Whether to show the monitoring card. Default is True.

aio_idstr, optional

Unique identifier for this component instance. A UUID is generated when not provided.

widthstr or int, optional

Width of the monitoring card. Default is 400.

font_sizestr, optional

Font size of the text in the card. Default is '14px'.

title_font_sizestr, optional

Font size of the title in the card. Default is '16px'.

orientationstr, optional

Layout orientation of the card ('horizontal' or 'vertical'). Default is 'horizontal'.

IDs

class ansys.solutions.dash_super_components.TransactionSupervisor.TransactionSupervisorIds#

Bases: AIOIds

Provides IDs for the subcomponents of TransactionSupervisor.

classmethod activate_monitoring(aio_id: str | Wildcard) → dict[str, Any]#

Return the ID for the activate monitoring store.

This component can be used to externally control the activation of the monitoring.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the activate monitoring store subcomponent.

classmethod elapsed_time_label(aio_id: str | Wildcard) → dict[str, Any]#

Return the ID for the elapsed time label.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the elapsed time label subcomponent.

classmethod started_time_label(aio_id: str | Wildcard) → dict[str, Any]#

Return the ID for the started time label.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the started time label subcomponent.

classmethod switch(aio_id: str | Wildcard) → dict[str, Any]#

Return the ID for the switch component.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the switch subcomponent.

classmethod transaction_status_badge(aio_id: str | Wildcard) → dict[str, Any]#

Return the ID for the transaction status badge.

Parameters:
aio_idstr or _Wildcard

The component’s unique identifier.

Returns:
dict[str, Any]

The unique ID dictionary for the transaction status badge subcomponent.