laborchestrator.gui.error_state_utilities module

GUI helpers around the error/exclusion state of the workflow.

Mirrors the structure of manual_execution.py: a create_*_controls() factory for the layout component and a register_*_callbacks() function for the Dash callbacks, so the main dash app only has to place the control and register the callbacks.

The single button is context sensitive to the selected node:
  • a container node -> toggles whether its steps are excluded from the schedule (immediate)

  • a process step -> asks for confirmation, then puts that step (and its containers) into

    the error state

  • anything else -> the button is hidden

laborchestrator.gui.error_state_utilities._exclusion_caption(excluded: bool) str[source]
laborchestrator.gui.error_state_utilities._process_of_container(jssp: SchedulingInstance, cont_name: str) SMProcess | None[source]
laborchestrator.gui.error_state_utilities._shown_style() dict[source]
laborchestrator.gui.error_state_utilities._toggle_exclusion(dash_app: SMDashApp, cont_name: str)[source]
laborchestrator.gui.error_state_utilities.create_error_state_controls() Div[source]
laborchestrator.gui.error_state_utilities.register_error_state_callbacks(app: DashProxy, dash_app: SMDashApp) None[source]