Can't we adding default values when possible ? For an example, localhost for URL?
On Sun, Jul 9, 2017 at 4:49 PM Mohanadarshan Vivekanandalingam < [email protected]> wrote: > On Sun, Jul 9, 2017 at 4:37 PM, Minudika Malshan <[email protected]> > wrote: > >> Hi, >> >> @Mohan : In that case, are we going to use *fail.on.missing.attribute* >> parameter in siddhi-io level. AFAIK it is used only in mapper level now. >> > > OK, I am confused with $trp in mapping configuration and trp:uri in source > configuration. > > Now, regarding your actual question. If we are defining a source > configuration property as a mandatory property, then it means we cannot > continue without that property. In this case, we need to throw an > exception. If we can continue with a null value then that property cannot > be a required property and it is an optional property. > > Thanks, > Mohan > > >> >> Thanks and regards! >> >> On Sun, Jul 9, 2017 at 4:24 PM, Mohanadarshan Vivekanandalingam < >> [email protected]> wrote: >> >>> @Minudika, I believe you are aware about the property >>> 'fail.on.missing.attributes'. >>> Let's decide whether to set null or throw exception as per the value that >>> defined for this property.. >>> >>> Thanks, >>> Mohan >>> >>> On Sun, Jul 9, 2017 at 4:13 PM, Sajith Ravindra <[email protected]> >>> wrote: >>> >>>> either we should, assign a default value or throw and exceptions >>>> >>>> AFAIU, we can proceed with out and url for sources there for it will >>>> not be possible to assign null and proceed. >>>> >>>> Thanks >>>> *,Sajith Ravindra* >>>> Senior Software Engineer >>>> WSO2 Inc.; http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> mobile: +94 77 2273550 >>>> blog: http://sajithr.blogspot.com/ >>>> <http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab> >>>> >>>> On Sun, Jul 9, 2017 at 4:04 PM, Minudika Malshan <[email protected]> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> In source, when a required transport property *(eg. trp:uri)* is not >>>>> present in the source configuration, should we assign null for that >>>>> property and proceed or should we throw an exception? >>>>> >>>>> Thanks and regards! >>>>> >>>>> -- >>>>> *Minudika Gammanpila* >>>>> Software Engineer - WSO2 >>>>> >>>>> Email : [email protected] >>>>> Mobile : +94715659887 <+94%2071%20565%209887> >>>>> Web : http://wso2.com <http://wso2.com/signature> >>>>> >>>> >>>> >>> >>> >>> -- >>> *V. Mohanadarshan* >>> *Associate Tech Lead,* >>> *Data Technologies Team,* >>> *WSO2, Inc. http://wso2.com <http://wso2.com> * >>> *lean.enterprise.middleware.* >>> >>> email: [email protected] >>> phone:(+94) 771117673 <+94%2077%20111%207673> >>> >> >> >> >> -- >> *Minudika Gammanpila* >> Software Engineer - WSO2 >> >> Email : [email protected] >> Mobile : +94715659887 <+94%2071%20565%209887> >> Web : http://wso2.com <http://wso2.com/signature> >> > > > > -- > *V. Mohanadarshan* > *Associate Tech Lead,* > *Data Technologies Team,* > *WSO2, Inc. http://wso2.com <http://wso2.com> * > *lean.enterprise.middleware.* > > email: [email protected] > phone:(+94) 771117673 > -- Thanks *,Sajith Ravindra* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273550 blog: http://sajithr.blogspot.com/ <http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
