Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
alex_bundschuh
Product and Topic Expert
Product and Topic Expert
0 Kudos

The current blog is part of a blog series where I describe how to implement different asynchronous integration scenarios using the pipeline concept on Cloud Integration. In the previous blog post, I described a multicast scenario. In this blog post, I like to describe how to apply the pipeline concept on Cloud Integration for implementing a point-to-point integration scenario, i.e., one sender and one receiver with no condition at all. I will first show you how the scenario is configured in SAP Process Orchestration, and then go through the main implementation steps to get the scenario run on Cloud Integration leveraging the pipeline concept.

For an introduction to the pipeline concept, see this intro blog post . If you haven't gone through the basics of the pipeline concept, I strongly recommend to first read the blog post before proceeding

Source Integrated Configuration Object in SAP Process Orchestration

The integrated configuration object example on SAP Process Orchestration has one single receiver with no condition defined.

04_01_ReceiverDetermination.png

On the Receiver Interfaces tab, an interface with an operation mapping and no xpath condition is defined.

04_02_InterfaceDetermination.png

Target implementation in Cloud Integration

We would like to model and run the scenario on Cloud Integration applying the pipeline concept. Prerequisite is that you have deployed all generic integration flows as well as the script collection from the integration package provided.

To set up the scenario using the pipeline, the Partner Directory entries need to be created as well as the scenario-specific integration flows. In our case, we assume that no inbound conversion is needed. So, we need to create the scenario-specific inbound processing as well as outbound processing integration flows as copies from the provided templates.

You have two options to implement the scenario in Cloud Integration, either running through all pipeline steps or bypassing most of the pipeline steps since receiver determination and interface determination are not needed anyway.

Option 1: Complete pipeline

In the first option, we run through all pipeline steps although most of the steps are not really needed. In this case, the XSLTs for the receiver determination and the interface determination always provide the same output with one and the same receiver and one and the same receiver interface, respectively, because no xpath conditions are carried out. You may opt for this option since those settings follow a common approach across all your integration scenarios

The partner ID to store the receiver determination XSLT mapping in the Partner Directory needs to be set to PIMAS_Sender~SI_SalesOrder_Out.

The XSLT mapping to determine the list of receivers is defined as follows. In this case, no xpath condition is carried out, so the resulting XML is always fixed.

 

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <ns0:Receivers xmlns:ns0="http://sap.com/xi/XI/System">
      <ReceiverNotDetermined>
        <Type>Ignore</Type>
        <DefaultReceiver/>
      </ReceiverNotDetermined>
      <Receiver>
        <Service>PIMAS_Receiver</Service>
      </Receiver>
      <Receiver>
    </ns0:Receivers>
  </xsl:template>
</xsl:stylesheet>

 

For the interface determination XSLT mapping, the partner ID equals PIMAS_Sender~SI_SalesOrder_Out ~PIMAS_Receiver. Like for the XSLT mapping to determine the receiver, the XSLT mapping to determine the interfaces results into a fixed XML as well. It is defined as follows:

 

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <ns0:Interfaces xmlns:ns0="http://sap.com/xi/XI/System">
      <Interface>
        <Index>1</Index>
        <Service>/pip/07/scenario3</Service>
      </Interface>
    </ns0:Interfaces>
  </xsl:template>
</xsl:stylesheet>

 

The scenario-specific inbound integration flow looks as follows. It’s a copy of the template Pipeline Template Step01 - Inbound Processing At Least Once, see Pipeline Steps.

04_03_Option1_InboundProcessing.png

The scenario-specific outbound integration flow looks as follows. It’s a copy of the template Pipeline Template Step07 - Outbound Processing Point-to-Point, see Pipeline Steps.

04_06_OutboundProcessing.png

Option 2: Bypassing most of the pipeline steps

In the second option, we can reduce the number of pipeline steps that are carried out to a minimum. We assume that no inbound conversion is needed, so we simply end up with three integration flows: the scenario-specific inbound flow, the generic outbound processing, and the scenario-specific outbound processing. In this case, the Partner Directory is not needed.

In the scenario-specific inbound flow, we configure the JMS receiver adapter pointing to the fourth and last queue so that most of the flows are bypassed. Since the Partner Directory is usually read in the generic flows that are bypassed, we need to ensure to maintain the headers which are needed to dispatch the message to the right outbound flow. So, in addition to the headers SAP_Sender and SAP_SenderInterface, the headers SAP_Receiver, maxJMSRetries, and SAP_OutboundProcessingEndpoint need to be maintained as well. In the header SAP_OutboundProcessingEndpoint enter the ProcessDirect end point of the scenario-specific outbound processing flow.

04_04_Option2_InboundProcessing.png

Since we entered here the fourth queue, the message is then picked up by the generic outbound processing and dispatched to the scenario-specific outbound processing flow.

04_05_Option2_InboundProcessingQueue.png

Next, we will cover another special use case, namely an interface split scenario with one receiver message type, see blog post.

1 Comment