Example to Add an Event Handler
- Last UpdatedSep 05, 2022
- 1 minute read
The example gets the available status definitions and sets an event handler for the first definition.
!statusManagement = object statusManagement()
!statusDefinitions = !statusManagement.statuses()
!statusEvents = object statusEvents()
!statusEvents.initialise(!statusDefinitions[1])
!statusEvents.addEventHandler('BeforeStatusChange',
!!handlerObject, 'beforeStatusChange')