> For the complete documentation index, see [llms.txt](https://docs.medable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.medable.com/cortex-api/expressions/events.md).

# Events

Events are non-extensible, script-only accessible un-managed objects that can trigger events and notifications delayed or on a recurring schedule. When fired, events move into the processing state, and then into the completed or failed state once handled.

```javascript
const { on } = require('decorators')                          

class Events {           

  @on('ns__test')
  static nsTest(param, runtime) {
    // runtime.source === 'event' when fried from an event instance
  }
}
```
