Hi Rajeevan,

This behavior happens when we try to format the configuration. We use javax
DocumentBuilder to parse and format and it does not care about the
attribute order, since it's meaningless as far as the standard is
concerned.
This for sure we can fix by manually editing the source configuration but
the concern is it will need some considerable effort to do so. Will it be
worth to spend that much time to fix this now because this is an non
blocking issue and we haven't got any complains about this from customers?
Anyways I think it is better to open a JIRA and keep it to be fixed in a
future.

Thanks,
Nuwan

On Fri, Jun 10, 2016 at 10:22 AM, Vimalanathan Rajeevan <[email protected]>
wrote:

> Hi,
>
> I will explain the issue with the help of Property Mediator. When we are
> adding a property with an expression to a sequence in Graphical Editor, the
> source view for that mediator is as follows,
>
> <property expression="fn:concat('Welcome ',
> //m0:getQuote/m0:request/m1:symbol)"
>           name="TestProperty" xmlns:m0="http://services.samples";
> xmlns:m1=" http://services.samples/xsd "/>
>
> Here 'expression' is positioned before 'name' of the mediator. IMHO,
> 'name' should be positioned before 'expression'(for better readability) and
> we should try to keep the order as below(from ESB Doc),
>
> <property name="string" [action=set|remove] [type="string"] (value=
> "literal" | expression="xpath") [scope=default|transport|axis2|axis2-client]
> [pattern="regex" [group="integer"]]>
>     <xml-element/>?
> </property>
>
> So I tried to change it from source view but when I switching between
> graphical and source views my changes are removed and ordered by
> alphabetically. It is giving difficulties when we are using Graphical
> Editor and trying to keep some conventions.
> It should be a known issue. Will we be able to fix this?
>
> Appreciate your thoughts on this.
>
> --
> Vimalanathan Rajeevan
> Software Engineer,
> WSO2, Inc. *http://wso2.com* <http://wso2.com>
> Lean.Enterprise.Middleware
>
> Mobile:
> *+94 773090875 <%2B94%20773090875>*
> LinkedIn:
> *https://www.linkedin.com/in/RajeevanVimalanathan
> <https://www.linkedin.com/in/rajeevanvimalanathan>*
>



-- 
----------------------------------------------------------

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *[email protected] <[email protected]>*
Mobile  *+94719079739@*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to