Added getEvents to CustomState operation model with ok event as the only
possible event.