cancel
Showing results for 
Search instead for 
Did you mean: 

1:N Mapping Problem..

Former Member
0 Kudos

Hi Experts

I have done splitting of messages using the following blog

But here how to map One source message to two different messages based on the value.

In above example IF its A it is going to one bpm_out message

if it is B it is going to bpm_out1. How to do this mapping..

Please suggest me

Regards

Sowmya

Edited by: Sowmya on Oct 20, 2008 5:59 PM

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Sowmya,

You can also try Split by value in node functions.

If you r doing the scenario based on the blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2748. [original link is broken] [original link is broken] [original link is broken]

you just try mapping to name---splitbyvalue-bpm_out_MT

Regards,

Leela

dharamveer_gaur2
Active Contributor
0 Kudos

Hi Sowmya

As i mentioned in my replied that Details node would be map with both info nodes.(This is Node to Node Mapping).This is mapping b/w details and both Info.

Steps:

details----> Index

Here Index is Statistic function.In this Put initial value=1,Increment=1,Count Indices="Contex".

Index ---> equalS

Constant(1)-->

After this

equalS->createIf->Info

End to End b/w detail node and info node is:

details->Index(initial 1,increment 1,Context)->equalS--->CreateIf-->info

*************************************Contant(2)----->

Now describe child node mapping :

Child node of Info

Name--->Name

Id----


>Id

Again for Next Child Info node

Name--->Name

Id----


>Id

Constant(any value)--->Age

Name and Id field should have 1:1 map

but you have to map both name and id of info node with Detail

Former Member
0 Kudos

This is condition based mapping, use the conditions with if and else function in your mapping that's it.

Regards,

Sarvesh

SudhirT
Active Contributor
0 Kudos

Hi ,

You can do like this.

Suppose these values are coming for Name field then

for BPM_OUT1 mapping will be

If(ifWithoutElse) Name equals Constant A map it to BPM_OUT1

and for BPM_OUT2

If(ifWithoutElse) Name equals Constant B map it to BPM_OUT2

Did you try this?

Thanks!

Former Member
0 Kudos

You can make 2 different mappings


name------------>equalsS----->if<--------tgt1
constant[A]--->                   then<----name


name------------>equalsS----->if<--------tgt2
constant<b>--->                   then<----name

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

use this

Detail Node map with Both Info

details->Index(initial 1,increment 1)->equalS--->CreateIf-->info

                                                      • Contant(2)----->

Use constant value in equalS as second value.

if any problem then get back to me

Former Member
0 Kudos

Hi Dharamveer,

I didnt under stand the mapping what u have specified.

and You have given only abouve the Details node what about other child nodes. How to map those..

Regards

Sowmya

Former Member
0 Kudos

Hi Sowmya

Do like this. Two mappings you need

name -> equalS(text)->A(constant) ->ifWithoutElse (Pass the constant in then) -> BPM_out_MT

name -> equalS(text)->B(constant) ->ifWithoutElse (Pass the constant in then) -> BPM_out1_MT

Thanks

Gaurav