cancel
Showing results for 
Search instead for 
Did you mean: 

[WebSphere] Mediation vs UDF

Former Member
0 Kudos

Hello,

can we say that a UDF is similiary to the mediations in WebSphere?

Both are programmable and can handle messages and can connect other systems.

thanks

chris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Yes the few of the functionalities are similar to the UDFs used in Mapping.

As WebSphere ESB comes complete with a set of mediation primitives from which you can build up your mediation logic. Similarly you could have the existing Nodes in Graphical mapping that can be used to customize the logics.

Adding a custom mediation (one of the supplied primitives) is the simplest way to add your own custom mediation logic. This is effectively a place in the mediation flow that calls out to another SCA Component which you implement yourself to provide your own logic.

But the custom mediation can be re-used that is not possible with UDFs across the Mapings. In PI 7.1. this feature is added.

With custom mediation You can have effectively call out to another service which provides the implementation of your mediation logic. But in UDF you can't call another services this way. i.e. calling another UDF internally etc.

Thanks

swarup

Former Member
0 Kudos

Thanks for replies.

Even that you can't call other UDFs in a UDF is a good point.

Points given.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

UDF is used to map source and target fields. The input for the basic UDF is a String and returns a String.

Advanced UDF contains Context also as parameter.

The values in source is come as String in UDF.

By using result.addValue() we can get out put of the string.

Thanks,

RamuV

Former Member
0 Kudos

Hi,

Both are the same in most of the aspects.

Find this on mediation in Websphere.

http://www.ibm.com/developerworks/websphere/techjournal/0504_murphy/0504_murphy.html

UDF can be used in graphical mapping depends upon the requirement like If u wanted to do manuplication in data which can not be done using the standard XI functions.

Thanks,

Vijaya.