cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.31 Java Only. How to add the same GUID for different receivers?

Former Member
0 Kudos

Hi Gurus,

I need to create some scenarios with different adapters. Each scenario has one sender and 2 receivers. The senders have diffent kind of channels from external systems. I need to add the same GUID to both of 2 receivers. I can make GUID in PI with java function randomUUID(). But I don't know how to use the same GUID in 2 outbound messages for 2 receivers. There is no BPM in the system.

Please, help to solve this question.

Regards,

Vladimir

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Vladimir,

the problem is, that any mapping would be executed separatly (first routing, then mapping). You can add a own adapter module at sender adapter (if you have an Java sender adapter).

Or - a bit dirty - you split your traffic into two parts: The first message has just one (virtual) http receiver. You execute a mapping creating the GUID. The http receiver address is just the http entrance address of PI (look to SAP help / http sender channel for details). So you have the second message where you define 2 receivers.

1. sender -> virtual http receiver (GUID mapping)

2. virtual http sender -> 2 receivers

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

I understand you ideas.

I have one more idea: in every mapping for 2 receiver we can calculate message-payload hash and use it as GUID. Hash will be the same in both mapping for one inbound message.

Regards,

Vladimir

udo_martens
Active Contributor
0 Kudos

Hi Vladimir,

that sound suitable. I think you can be creativ here A nice challenge for programming freaks

/Udo

Answers (0)