15 B2Bi Basics - Message Processing Part 1v1.2 W&C
15 B2Bi Basics - Message Processing Part 1v1.2 W&C
Basics
Message Processing Part 1
Message Processing part 1 – Overview
Items
Introduction of UI
• After completing this module you will have a conceptual understanding of the
message processing logic in B2Bi and you will be familiar with the various
terminology and objects being used to configure those message processing
flows.
• To complete this module, it is a prerequisite that you completed module 14 –
Message Exchange Part 1 – first
4
Communication model vs Agreement model
• As explained in the Product Introduction section, B2Bi provides two Message
Processing modes:
• “Limited” mode: Transport only
• B2Bi uses communication / transport related identifiers and configuration to recognize and route
the message
• “Standard” mode: Transport & Message processing
• B2Bi uses communication / transport and/or message related identifier and configuration to
recognize and process the message
Application / Partner
Communication
Integration / Translation
Service
Detection
Matching
Inbound
• Standard mode – Communication and message
Agreement
processing. Context and/or content based routing /
Document
Agreement
translation. Ability to use additional Integration
Engine hosted exchange types (SAP ALE, ..)
Service
Outbound
Agreement
Delivery Collaboration
Settings Settings
Delivery
Detection
• Direct Integration
Matching
Inbound
• Services connected to pickups
Agreement
Document
Agreement
Service
Outbound
Agreement
Delivery Collaboration
Settings Settings
Delivery
Application / Partner
Communication
Integration / Translation
Application / Partner
Communication
• The B2Bi communication processing node (known as the “trading engine”) performs all message
consumption and delivery including protocol and security packaging
• For trading partner exchanges (remotely, to/from secure partner connectors)
• For customer application integration exchanges (locally, to/from backend applications)
• Communication processing may include protocol or transport level acknowledgments
9
Communication Model
What is needed
Routing ID
• a unique identifier that the trading engine uses as the “to” and “from” address for e-commerce
messages exchanged over the Internet.
• Although a community or partner can have many routing IDs, the user interface designates one per
community or partner as the default.
• Default routing IDs are used by default for message protocol headers when packaging messages.
Routing ID
• a unique identifier that the trading engine uses as the “to” and “from” address for e-commerce
messages exchanged over the Internet.
• Although a community or partner can have many routing IDs, the user interface designates one per
community or partner as the default.
• Default routing IDs are used by default for message protocol headers when packaging messages.
Collaboration settings
• specifies how B2Bi packages the messages that a community sends to its partners. You can use default
collaboration settings which apply to all messages sent by all communities to all partners, or you can
customize collaboration settings at progressively more specific levels.
More details on the “Limited” processing mode can be found later on when we address Message Exchange
Integration / Translation
• The B2Bi message processing node (known as the “integration engine”) performs all content (payload)
based message processing
• Content based processing resolves the correct profile or agreement to process each business
document inside a received message and apply the correct configured mapping, enveloping and
delivery routing rules
• Partner agreement defined and format specific functional acknowledgements (X12/EDIFact) may be
generated (back to remote partners) or timers may be set (to wait for their response from partners)
14
“Standard Mode” configuration
• Partner initiated (inbound) scenario
1. Community definition
1
2. Partner definition
3. Pickup protocols
4. Delivery protocols
5. Message Processing Configuration
4 5 3 2
This diagram shows an overview of the various objects that maybe involved in the
configuration of a “standard” processing flow (including mapping) between 2 partners
• a child object of a community or a partner that identifies the community or partner as the sender or
receiver of a specific message standard.
• When a community or partner has a messaging ID, it can participate as a sender or receiver in a
message-trading agreement.
• If a community or partner needs to act as the sender or receiver of multiple formats, it must also have
multiple messaging IDs.
• To be able to trade messages of a given standard with other participants, each partner or community
must have at least one messaging ID for each message standard it wants to trade.
• A partner or community can have as many messaging IDs as required for the messages exchanged
(EDI, X12, IDoc, ...).
ISA*00*9922567822*ZZ*0012345600*ZZ*001111110001*ZZ*991111110001*100807*0946*U*00401*100000461*0*P*>
GS*PO*001111110001*0012345600*20100807*0946*200000461*X*004010
ST*850*300000461
...
… • Messaging IDs
SE*30*300000461
GE*1*200000461
• Sender Messaging ID
IEA*1*100000461 • Interchange ID Qualifier: 00
• Interchange ID: 9922567822
• Application ID: 001111110001
• Recipient Messaging ID
• Interchange ID Qualifier: ZZ
• Interchange ID: 0012345600
• Application ID: 0012345600
19
Community Messaging IDs
X
In Standard mode, messages are affected
by the Message Processing
Configuration (in the Integration Engine)
in addition to the Message Handler. The
Delivery Settings are not evaluated –
although 1 default delivery setting must
be created
• Outbound Agreement - Defines the enveloping logic required for sending to a remote
partner.
Messaging ID X Messaging ID Y
Company 1 Company 2
is valid for
EDIFACT / D01B – ORDERS EDIFACT / D01B – ORDERS
• Semi-specialized Agreement: Both the sender X12 / 5010 - 850 X12 / 5010 - 850
28
Document Agreements
• A document agreement is a B2Bi object that you use to specify how a document
type (within a messaging standard and standard version) is to be handled in an
inbound agreement between exchange participants.
30
Service
Document
Document Document
Format Version Type
Document Format Inbound
Post Detection
Agreement
EDIFACT
Mapping
Document Agreement
Possible
D01B Document Version components
Service Mapping
ORDERS Document Type Component
Document
(Enveloping)
Post Enveloping
Post Transfer
Success
Post Transfer
Failed
32
Service
Document
Document Document
Format Version Type
Each output has its own delivery.
Post Detection
Delivery Methods
Mapping
• Deliver to resolved Partner – this services ended with a delivery to a resolved
Output Output Output Output Output
partner
• Deliver to Application – this services ended with a delivery to back-end
application
• Synchronously return output to originating party – this service ended with a
synchronous reply on in the incoming request
Application
Delivery
(A)
Delivery
Service
Partner
Partner
Delivery
(P)
33
Service - UI
Step to be executed before
map (right after detection).
This step can only have 1
output as result
Mapping Step – This is the
only component which can
have more than 1 output.
Each output will drive a new
output tab further down on
this page
Document Components –
one or more post-map
steps – configured per
output
Resources are available as add-ons and must be manually copied to an appropriate directory on the
integration engine. Resources must also be registered on the integration engine before they can be
browsed in Component creation.
Document
Document Document
Format Version Type
• Deploy the flow directly from Mapping Services to a runtime server using UI commands
• Export a flow to a container, and then deploy the container using a command line
The resource appears in the Mapping Services user interface on the Runtime Repository Server tab,
listed under the server name.
The resource is available in the B2Bi user interface for use in message-processing definitions. When you
add components you can view lists of available resources.
39
Trading Engine
Message Tracker Message Tracker
Integration
Engine
Use Message Log to view detailed integration engine message-processing related Message Log
information, such transfer status, synchpoints, etc. Integration
Engine
Message Log is for detailed message-processing information. The final processing
status can always be found in the Message Tracker. To view logs of system-related
errors on the integration engine, use the Trace Viewer.
Each message is associated with a unique LogId. A message going through the
integration engine may change its shape (mapping, splitting, enveloping). For each new
form of the message a new LogId is obtained.
When you look at the Message Log, Hierarchical view, it is possible to see the Message Log
complete chain of LogIds and log events and how each LogId is related to its child- Integration
LogIds and/or parent-LogIds. Engine
Normal message-related errors are logged in the Message Log. For example:
• Parsing failures
• Classification failures (no matching criteria)
• Send failures
• Retrieve failed polling (ftp server down, or directory missing, POP server down
Message Log
Integration
Searches Engine
- Default
- Customized
First Entry
Log Entries
Log Events
Selected Entry