Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This example pipeline demonstrates how you can read a message after it is published by the Publish Message Snap.

...

Download this pipeline.

This The above pipeline essentially contains performs the following key steps:

  1. Read the file from the S3 Bucket.

  2. Extract the content of the message.

  3. Publish the message.

  4. Read the message.

 
Prerequisites:

  • A valid S3 account.

Step 1: Configure the S3 File Reader Snap to read the file from the S3 bucket. On validation, this Snap displays the binary output in the preview.

Step 2. : Configure the Binary to Document Snap to convert the file content that is in binary format to document format.

...

Step 3. : Configure the Mapper Snap to extract only the content of the message.

...

Step 4. :Configure the Publish Message Snap to publish the message to the ARN topic in the SQS endpoint. On validation, the Snap displays the output with the message payload details.

...

Step 5. : Configure the SQS Consumer Snap to consume the message. On validation, the Snap displays the reference of the payload (message payload contains the name of the S3 Bucket Name and S3 Key details). The Secret key allows you to open the message.

Step 6. : Configure the File Writer Snap to write the message in the SnapLogic database.

...

Step 7. : Configure the File Reader Snap to read the message.

...

Prerequisites:

  • A valid S3 account.

 1. Step 1: Configure the Publish Message Snap to send a message (to the email endpoint) greater than 256KB256 KB. On validation, the Snap displays the output with the message payload details.

...

Step 2. :Configure the Mapper Snap to extract the content of the message.

...

Step 3. : Configure the Email Reader Snap to read the message. On validation, the Snap sends an email with the message payload details (S3 Bucket name and Secret key).

Step 4. : Configure the Filter Snap to filter the messages above 256 KB from the email endpoint.

...

Step 5. : Configure the Mapper Snap with the S3 Bucket name and Secret key to enable the download of the message.

...

Step 6. : Configure the S3 Download Snap with the S3 Bucket name to download the message. On validation, the output preview shows the location of the downloaded message and the message details.

...

Publish Message to Email Endpoint

Step 1: Configure the Publish Message Snap to send a message (to the email endpoint). On validation, the Snap displays the output with the message payload details.

Step 2. :Configure the Email Reader Snap to read the message. On validation, the Snap sends a message to a specified email address.

Step 3. : Configure the Filter Snap with the filter expression as follows to filter messages less than 256 KB:

Filter expression: $subject.contains("Subject_SNS_Publish_Text_message_to_IdenticalPayload_allDeliveryProtocols_6d") && $textBody.contains("arn:aws:sns:us-west-2:740934760981:SNS_427_SNPQA_Create_Topic_PublishMessage_Scenario_6d2")

...

Step 4. : Configure the Head Snap to send the input documents to the output view relative to the start of the input stream.

...

Step 5. : Configure the Mapper Snap to extract the content of the message. On validation, the Snap displays the message content in the output preview.

...