pynetdicom._handlers.doc_handle_fsm

pynetdicom._handlers.doc_handle_fsm(event: Event, *args: Sequence[Any]) None[source]

Documentation for handlers bound to evt.EVT_FSM_TRANSITION.

Parameters:
  • event (events.Event) –

    Represents the state machine receiving a triggering event and being about to perform the action that will take it to the next state. Event attributes are:

    • action: the name of the action that’s to be performed as str.

    • assoc: the Association that triggered the event.

    • current_state: the current state of the state machine as str.

    • event: the event that occurred as NotificationEvent.

    • fsm_event: the name of the state machine event that occurred, triggering the transition as str.

    • next_state: the state the state machine will be in after the action has been performed as str.

    • timestamp: the date and time that the FSM transition occurred as datetime.datetime.

  • args – If the handler was bound to the event using bind(event, handler, args) or by passing evt_handlers=[(event, handler, args), ...], where args is a list then there will be one or more optional extra parameters matching the contents of args.