Custom extensions can be written in Siddhi in order to cater to usecase specific logic that is not available out of the box in Siddhi.
For a general idea of how to write an extension, see SiddhiQL Guide - Writing Custom Extensions.
The following sections contain detailed information on how to create different types of Siddhi extensions.
Overview
Content Tools
Activity