AFAIK mediators are not type aware yet so need couple of properties to
define input and output data format,

/Jasintha


On Fri, Apr 4, 2014 at 10:26 AM, Chanaka Fernando <[email protected]> wrote:

> Hi Sohani,
>
> +1 for the "DataMapperMediator" idea. If you could give another option to
> select the output format either as XML or JSON, that would be really
> helpful.
>
> WDYT?
>
>
> Thanks,
> Chanaka
>
>
> On Thu, Apr 3, 2014 at 6:32 PM, Sohani Weerasinghe <[email protected]>wrote:
>
>> Hi,
>>
>> As per previous discussions we had, the objective of the datamapper
>> mediator is to map input (payload) from one mediator (most probably this
>> would be a connector) an gives the required output to the other mediator.
>> Currently we are using a class mediator for this purpose. Therefore we are
>> going to implement a custom mediator for data mapping called
>> 'DataMapperMediator'.
>>
>> Mainly for the mapping done in the data mapper engine we need three
>> inputs as mapping configuration, input avro schema and output avro schema.
>> References for these inputs should be in the Data Mapper Mediator,
>> therefore below mentioned properties or attributes should be defined for
>> the Mediator.
>>
>>    - Configuration key
>>    - InputSchema key
>>    - OutputSchema key
>>
>> The Data Mapper Mediator implemented based on the above properties will
>> get the resources from the pointed locations and give them to the data
>> mapper engine as inputs. And also it generates a required output for the
>> next mediator based on the output received from the datamapper backend.
>>
>> Currently the payload is in XML and the data mapper engine gives the
>> output as JSON therefore, for the time been Data Mapper Mediator is going
>> to implement to get the XML input and to generate an XML output.
>>
>> Thanks,
>> Sohani
>>
>>
>>
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog     :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*Jasintha Dasanayake*

*Software EngineerWSO2 Inc. | http://wso2.com <http://wso2.com/>lean .
enterprise . middleware*


*mobile :- 0711368118*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to