cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping a message in different types of messages depending field value

Former Member
0 Kudos

Hi gurus!

I need your help!, I need to create a scenario where I receive a message with a JMS adapter, for which I define an outbound service interface type, but depending on the value of a field (interface) to map in order to create different service inbound interface type.

For example, I get the MT that is associated with a Service Interface SI_OUT:

<MT_TRX>

<interface> 101 </ Interface>

<message>

nombre="AVISO"> <campo 8500070609 </ field>

nombre="ESTADO"> <campo PCDS </ field>

</ MESSAGE>

</ MT_TRX>

As the interface has the value 101 with a Message Mapping I want to create the Service Interface SI_IN_101 whit message type MT_101.

If interface = 102, the Service Interface should be SI_IN_102 and message type_102... etc.

Can be mapped to different types of Service Interface, need different Operations?

Thank you very much for your help, I don't know how to solve the problem!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Veronica,

There are two clear options to approach the solution: be it 7.11 or earlier

1. Go for 1..Onbounded Operation mapping. In your operation mapping on the target side add the different inbound interfaces. You have to define seperate message mappings for each of your target message types and use them in the operation mapping.

2. The rather simplistic solution would be to go for conditional interface determination. A well know approach, if you have multiple interfaces to be mapped from a single interface for the same receiver system. Define seperate Message and Operation mappings for each of your Inbound Interfaces and then in Integration Directory use conditional Interface determination to call the appropriate operation mapping based on the condition checking on input payload (XPath).

I will strongly suggest the second option for better maintainability and monitoring of your interface.

You certainly dont need multiple operations, that's for different purpose altoghether

Regards,

Suddhasatta

Former Member
0 Kudos

Eureka!

Thank you very much for your help!

Just what I needed. In the Interface Determination Interfaces I can define different recipients with one condition.

Needed to solve the problem in order to make a better monitoring of a large number of messages.

Thank you very much!

Former Member
0 Kudos

Cheers!

Answers (2)

Answers (2)

Former Member
0 Kudos

Multimapping will do the trick for you...

Just check following blogs:

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

/people/ranga.rajan2/blog/2010/03/17/multi-mapping-with-a-simple-scenario--fledgling-kit

former_member207622
Contributor
0 Kudos

Why do you need to create message type names and service interface names with interface number ?

May I know the utility ? As far as I know , message type or service interface or operations are created in ESR

I dont think they can be changed dynamically

I am not sure about it , lets see fellow SDN'rs reply

thanks

Ninad