Hello PI Experts,
I have a scenario
Source | Target | |
---|---|---|
Service Interface Rx Pos Trg A | ||
Create Purchase Order Target A | ||
Service Interface Batched Pos | Update Purchase Order Target A | |
Send Batched POs | Service Interface Rx Pos Trg B | |
Create Purchase Order Target B | ||
Update Purchase Order Target B | ||
The sender application is creating a batch of Create/Update Purchase Orders for two vendors A and B. This is an xml file, the structure of Create and Update messages is different and both of them have a field Vendor to identify which vendor should be sent a particular message.
The PI interface needs to debatch the complete file, and send out individual messages to the vendors (A and B) based on the Vendor flag in the incoming message.
I have created a single outbound interface and two inbound interfaces. The operations are mentioned in the table above.
What is the most optimum way to solve this problem? The interface should be flexible enough so that one more vendor (e.g Vendor C) with nominal effort.
So far
In ESR : single message mapping (Source to Create/Update vendor A/B) to generate 4 different messages
In ID : three Business components (Source, Vendor A and Vendor B), three communication channels (source, Vendor A and Vendor B), 1 Sender Agreement, 1 interface determination, 1 receiver determination and 2 receiver agreements.
I have created all the above components and configured them. But the configuration is failing because of one or other issue.
Can someone point out, what am I doing wrong?
Regards