cancel
Showing results for 
Search instead for 
Did you mean: 

message bundling issue

Former Member
0 Kudos

Hi all,

I have a unbounded message with the following structure

messagename(unbounded)

Header

element1

LineItem

Item(unbounded)

orderno

lineitemno

ex:

message'1'

Header

a

Lineitem

item

1(ordnum)

10(lineitem)

message'2'

Header

a

Lineitem

item

2(ordnum)

10(lineitem)

message'3'

Header

a

Lineitem

item

1

20

Now , I want to group the message with the same order number.(messages 1 and 3)

The desired result woud be like,

message'result'.

Header

a

Lineitem

item

1

10

item

1

20

Can somebody help me in grouping this.

Thanks in advance,

sudha.

Accepted Solutions (1)

Accepted Solutions (1)

STALANKI
Active Contributor
0 Kudos

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

will surely help.

Former Member
0 Kudos

Hi sravya,

I have alreday read your log. The problem in my case is I dont want to split for every occurence of the ordernumber, but instead i want to split for every distict value of ordernumber.

Thanks.

sudha.

Former Member
0 Kudos

Hi sravya,

If i have a remove context between the ordernumber and the header, then a message is produced for every occurence of ordernumber.I dont want that to happen.

I want a message to be produced for every change in value of the ordernumber.

Thanks.

sudha.

Former Member
0 Kudos

hi,

look at this weblog by Stefan, he has mapping examples with specific reference to problems like yours

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

cheers,

naveen

Former Member
0 Kudos

Hi Naveen,

thanks for the link. It had the exact solution for my problem. thanks a lot.

regards.

sudha.

Former Member
0 Kudos

Hi,

Glad to be Helful. Stephen deserves to get the points. Excellent mapping weblog. He is one the experts in the topic of Mapping.

cheers,

naveen

Answers (1)

Answers (1)

STALANKI
Active Contributor
0 Kudos

just check splitby value properties and see if u have that option.

otherwise you have to do it via advanced function using Result.CC.Take the cache entire queue and remove the context(i.e queue in mapping should not have any contexts) and input it to advanced function and insert result.addValue(Result.cc).Hope it helps.