Thursday, November 20, 2014

Adding Siddhi extensions when using Siddhi as a Java library

You can write Siddhi extensions and run them in WSO2 CEP as given :

But if you are using Siddhi as a Java library then you can add then to SiddhiManager as follows

        List extensionClasses = new ArrayList();
        SiddhiConfiguration siddhiConfiguration = new SiddhiConfiguration();
        SiddhiManager siddhiManager = new SiddhiManager(siddhiConfiguration);