In that case we have a bug in developer studio! :) as we have not
introduced a filed for defaultValue in our graphical view, hence on adding
a value for defaultValue in the source view in switching to graphical view
will remove the saved value.

I will create the relevant JIRA after discussing with the team.

Regards
Awanthika


Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, Oct 7, 2015 at 9:57 AM, Nuwan Pallewela <[email protected]> wrote:

> Hi Awanthika,
>
> I think this defaultValue can be any value. It is assigned for the
> attribute if the expression can not find a property value.
>
> Thanks,
> Nuwan
>
> On Wed, Oct 7, 2015 at 9:29 AM, Awanthika Senarath <[email protected]>
> wrote:
>
>> Hi all,
>>
>> On testing the developer studio 3.8.0 I could observe that the
>> "defaultValue" field for attribute parameters in the Publish Event Mediator
>> [1] is always empty and will not store any values.
>>
>> On referring the documentation [2] for ESB 4.9.0 in the sample displayed
>> also I could observe the same. Could you please explain the purpose of
>> having this field in the said mediator and whether this is the correct
>> use-case to be implemented from Developer Studio end?
>>
>>
>> [1]  <attributes>
>>           <meta>
>>             <attribute *defaultValue=""*
>>               expression="get-property('axis2', 'HTTP_METHOD')"
>>               name="http_method" type="STRING"/>
>>             <attribute *defaultValue=""* expression="get-property('To')"
>>               name="destination" type="STRING"/>
>>           </meta>
>>           <correlation>
>>             <attribute *defaultValue=""*
>>               expression="get-property('SYSTEM_DATE')" name="date"
>> type="STRING"/>
>>           </correlation>
>>           <payload>
>>             <attribute *defaultValue=""*
>>               expression="$body/m0:getQuote/m0:request/m0:symbol"
>>               name="symbol" type="STRING" xmlns:m0="
>> http://services.samples"/>
>>           </payload>
>>           <arbitrary/>
>>         </attributes>
>>
>> [2] https://docs.wso2.com/display/ESB490/Publish+Event+Mediator
>>
>> Regards
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> ----------------------------------------------------------
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *[email protected] <[email protected]>*
> Mobile  *+94719079739 <%2B94719079739>*
>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to