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:
DivA 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:
- url
str The URL of the GLOW API server.
- step_name
str The name of the GLOW step (StepModel) that contains the method.
- method_name
str The name of the GLOW transaction method whose status is being monitored.
- title
str,optional Title displayed in the monitoring card.
- show
bool,optional Whether to show the monitoring card. Default is
True.- aio_id
str,optional Unique identifier for this component instance. A UUID is generated when not provided.
- width
strorint,optional Width of the monitoring card. Default is
400.- font_size
str,optional Font size of the text in the card. Default is
'14px'.- title_font_size
str,optional Font size of the title in the card. Default is
'16px'.- orientation
str,optional Layout orientation of the card (
'horizontal'or'vertical'). Default is'horizontal'.
- url
IDs
- class ansys.solutions.dash_super_components.TransactionSupervisor.TransactionSupervisorIds#
Bases:
AIOIdsProvides 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.
- classmethod elapsed_time_label(aio_id: str | Wildcard) dict[str, Any]#
Return the ID for the elapsed time label.
- classmethod started_time_label(aio_id: str | Wildcard) dict[str, Any]#
Return the ID for the started time label.