+1 from me. Looks readable and concise, and we seem to have covered for most requirements as well with optional fields as well.
On 30 April 2015 at 13:04, Sriskandarajah Suhothayan <[email protected]> wrote: > > On Wed, Apr 29, 2015 at 11:52 PM, Tishan Dahanayakage <[email protected]> > wrote: > >> What about adding sample query segment showing usage of extension. Or >> point to another page which describe 'Working with Siddhi Extensions' >> > We can use the Examples section for that > > So how about the following model > > *abs*(a *<int,long,float,double>*) > > - > > Extension Type: Function > - Description: Returns the absolute value of 'a' > - Parameter a: (optional) > - Return Type(s): double > - Example: (optional) The absolute value of 3 is 3, and the absolute > value of −3 is also 3 > > > We can use the following model and if the Parameter is very complex we > will use is separately and if example make sense we can use that too, > > WDYT > > Suho > >> . >> >> Thanks, >> Tishan >> >> On Wed, Apr 29, 2015 at 10:26 AM, Sriskandarajah Suhothayan < >> [email protected]> wrote: >> >>> >>> >>> On Wed, Apr 29, 2015 at 9:28 PM, Dilini Muthumala <[email protected]> >>> wrote: >>> >>>> Hi, >>>> I like the format. Would like to suggest an improvement, marked in blue: >>>> Math >>>> >>>> abs(a double/int/float/long) >>>> >>>> - Extension Type: Function >>>> - Description: Returns the absolute value of 'a'. >>>> - Return Type(s): double >>>> - Example: abs(3) returns 3, and abs(−3) also returns 3. >>>> >>>> >>>> +1 for Description and Example >>> >>>> Example field could be optional. >>>> >>>> Thanks, >>>> Dilini >>>> >>>> On Wed, Apr 29, 2015 at 9:18 AM, Sriskandarajah Suhothayan < >>>> [email protected]> wrote: >>>> >>>>> Hi all >>>>> >>>>> Recently we have implemented several Siddhi extensions and we thought >>>>> of documenting them as here[1] >>>>> >>>>> Please provide you feedback on the format. >>>>> >>>>> If we need to change the format we have to change it fast else after >>>>> adding all the functions it will be very hard to change the format. >>>>> >>>>> Regards >>>>> Suho >>>>> >>>>> [1]https://docs.wso2.com/display/CEP400/Siddhi+Extentisions >>>>> -- >>>>> >>>>> *S. Suhothayan* >>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor >>>>> *WSO2 Inc. *http://wso2.com >>>>> * <http://wso2.com/>* >>>>> lean . enterprise . middleware >>>>> >>>>> >>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: >>>>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: >>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: >>>>> http://lk.linkedin.com/in/suhothayan >>>>> <http://lk.linkedin.com/in/suhothayan>* >>>>> >>>> >>>> >>>> >>>> -- >>>> *Dilini Muthumala* >>>> Software Engineer, >>>> WSO2 Inc. >>>> >>>> *E-mail :* [email protected] >>>> *Mobile: *+94 713-400-029 >>>> >>> >>> >>> >>> -- >>> >>> *S. Suhothayan* >>> Technical Lead & Team Lead of WSO2 Complex Event Processor >>> *WSO2 Inc. *http://wso2.com >>> * <http://wso2.com/>* >>> lean . enterprise . middleware >>> >>> >>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: >>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: >>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: >>> http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>* >>> >> >> >> >> -- >> Tishan Dahanayakage >> Software Engineer >> WSO2, Inc. >> Mobile:+94 716481328 >> >> Disclaimer: This communication may contain privileged or other >> confidential information and is intended exclusively for the addressee/s. >> If you are not the intended recipient/s, or believe that you may have >> received this communication in error, please reply to the sender indicating >> that fact and delete the copy you received and in addition, you should not >> print, copy, re-transmit, disseminate, or otherwise use the information >> contained in this communication. Internet communications cannot be >> guaranteed to be timely, secure, error or virus-free. The sender does not >> accept liability for any errors or omissions. >> > > > > -- > > *S. Suhothayan* > Technical Lead & Team Lead of WSO2 Complex Event Processor > *WSO2 Inc. *http://wso2.com > * <http://wso2.com/>* > lean . enterprise . middleware > > > *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: > http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: > http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: > http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>* > -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: [email protected] mobile: (+94) 71 5247551
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
