Hi Lahiru,
Looking at the code segment given above, everything seems correct. Can you
attach the complete class of the Siddhi extension and the exact query used,
so that we can dig into it deeper?
Thanks,
Lasantha
On 14 October 2014 21:54, Lahiru Cooray lahi...@wso2.com wrote:
Hi,
When
Hi,
Please refer the attached java class. And the siddhi query is as follows:
from InputStream1
select custom:abs(para1) as p1
insert into OutStream1
As per the code, when we call abs() function with no parameters it should
fire the validation.
But it wont give the expected result.
Thanks..
Hi Lahiru,
Looks like, Its default attribute type is set to LONG if no parameter
passed, That's why even if you don't pass any value its assigning the
default attribute type and returns that.
Even i got the same case.
Thanks Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail:
Hi,
When writing a custom function as a Siddhi Extension I faced an issue in
validating the parameter count passed.
Eg:
from InputStream1
select *custom:cos(para1)*
insert into OutputSream1
I tried to validate the custom function '*cos*' where user should be able
to pass only one parameter.I