Hi, I want to pass parameters from an event table to a custom siddhi extension. The following query [1] doesn's work. Can someone explain whether it is possible and if so what Im doing wrong here?
[1] *define table inMemoryTable (myid int, lastDateTime double, lattitude double, longitude double);from FilteredStreamselect id, time, lat, longitudeinsert into inMemoryTable;from FilteredStream[(time == inMemoryTable.lastDateTime and not(id == inMemoryTable.myid)) in inMemoryTable]#window.time( 5 second ) select id, time, longitude, lat, speed, false as speedFlag, false as withinFlag,"null" as withinPoint, false as withinTime ,geo:geoproximity(2.0,lat,longitude,lat,longitude)as proximity,* *inMemoryTable.myid as closeIDinsert into proximityOutStream;* [2] geo: geoproximity is a custom function that returns a string thanks regards -- Awanthika Senarath Software Engineer, WSO2 Inc. Mobile: +94717681791
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
