![]() Support FTP adapter in Poll Enrich step.Configure Handling if File is not found on the sftp server (available with August 2021 update).Keep File and Process Again option not available (available with July 2021 update).Dynamic Configuration of Proxy Type and Authentication (available after the June 2021 update).I hope this simple scenario helps you to understand the Poll Enrich pattern. It is planned to offer specific handling in such a case. Note that in case no file can be found on the sftp server, the processing continues with the payload before the Poll Enrich step. In the configuration we specify the properties defined in the Content Modifier:Īs a final step, configure a connection to the Receiver participant to send the message out.ĭeploy the flow and trigger it with a payload that provides the necessary data in my example, I use the following simple payload: Some configurations, like the Scheduler tab, are missing because they are not relevant in this pattern, but most settings are equal. The configuration of the SFTP adapter will look familiar to you because it contains almost the same configuration options as the normal SFTP sender adapter. To do so, add another Sender participant and draw a connection from this new Sender participant to the Poll Enrich step. Having defined the Poll Enrich step, we now need to configure the SFTP adapter. Based on the header you can configure alternative processing. If not selected, the header SAP_PollEnrichMessageFound is set to false if no message can be found during processing. If you want to get an exception in case no message is found on the sftp server you can select the checkbox Throw Exception if no Message Found. Concatenate: The message polled from the sftp server is added to the existing message.This option makes most sense if both, the original and the polled message, are XML messages. Combine XML: This option combines the message polled from the sftp server with the original message in multimapping format.If you want to enrich your original payload (use case 1), you have to select one of the other two algorithms: This algorithm simply replaces the original message (payload and headers) before the Poll Enrich step with the new one fetched from the sftp server. The aggregation is configured with the help of the Aggregation Algorithm in the Poll Enrich step:įor our use case (to simply read files via external trigger or via dynamic configuration in the sftp adapter), the Replace option is the correct choice. In addition you configure what to do if no message is found on the sftp server. In the Poll Enrich step, we have to configure how the payloads need to be aggregated: the one before the Poll Enrich step and the payload fetched from sftp server need. For this, in the Call section of the modeler, select External Call and then Poll Enrich. Next to the Content Modifier, configure the Poll Enrich step. Note that with the first increment (version 1.0 of the Poll Enrich sftp adapter), Proxy Type and Authentication can’t yet be set dynamically.įor my simple scenario, I define the following properties to set them dynamically via XPath from the incoming http request: The same settings are allowed dynamically in the sftp adapter in the Poll-Enrich pattern. For dynamically configurable settings, refer to the blog Cloud Integration – Dynamically Configure the SFTP Receiver Adapter. In the Content Modifier, you define the properties that are to be used dynamically in the SFTP Adapter. In the integration flow, draw a connection from the Sender participant to the Start Message event and select the HTTP adapter then add a Content Modifier next to it. At the very end, the message is sent out to the receiver system. In a subsequent Content Modifier, some properties are defined that are used dynamically in the sftp adapter when polling the file from sftp server. The flow starts with a HTTP inbound adapter that triggers the message processing. This is the simple integration flow we are going to build: Yet, I will shortly also mention the configuration option for the first use case when discussing the integration flow configuration. In this blog, I will focus on the second and third use case. You need to poll from an sftp server but want to define the configuration in the sftp adapter dynamically, for example from a partner directory.You want to poll from an sftp server triggered by an external trigger, for example triggered via HTTP call.You want to enrich the message payload with additional data retrieved from a file on the sftp server.In general, there are three main use cases for the Poll Enrich pattern: This blog describes how to configure the new Poll Enrich pattern in combination with the sftp adapter, elaborating on use cases and different configuration options.
0 Comments
Leave a Reply. |