Customization > Automation Interface > Functions > For System Simulations > Notification Functions > GetNotificationID function (automation interface)
  
GetNotificationID function (automation interface)
Syntax:
GetNotificationID
Returns the Modeler id of the State or Transition dictionary item that is the subject of the current notification call. The Modeler id is returned as a string.
* 
You can use the standard automation interface functions to get additional information about the State or Transition dictionary item.