SK SKYVVA Documentation

2. How to use Agent File Adapter For Consumer

Introduction

In this tutorial, we will learn how Agent File Adapter works for consumer. Agent File Adapter for consumer means Inbound Agent File Adapter. We use Inbound Agent File adapter for reading using the new event-driven mode with the consumer. We have an event-driven listener which is a camel consumer. We don’t need a scheduler. We add the real-time and event-driven feature to pick up immediately. To use the agent file for consumer, we need to configure the Agent Control Board, and we need to create an Agent File adapter.

Pre-required

Firstly, you need to have some required step before you can use the Agent File adapter:

How to use Agent File Adapter for Consumer?

  1. Go to the Integration Detail page

Case 1: Create Inbound Agent File Adapter for CSV format and Protocol: Local.

You will get a success message when the route starts successfully [su_box title="Note" box_color="#2a8af0" title_color="#000000"] you need to link the inbound adapter with the inbound interface otherwise route will not start.[/su_box]

Case 2: Create Inbound Agent File Adapter for Excel format and Protocol: FTPs

-Password: FTPs password -Port: FTPs Server Port -File Type: Excel -Folder: Sreymay/Inbound2/Excel -File Name: MyAccount2.xlsx

You will get a success message when the route started successfully.

Case 3: Create Inbound Agent File Adapter for XML format and Protocol: SFTP

-Password: SFTP password -Port: SFTP Server Port -File Type: XML -Folder: SFTP/XML -File Name:Account-SB3.xml

You will get a success message when the route started successfully.

Case 4: Create Inbound Agent File Adapter for JSON format and Protocol: FTP

-Password: FTP password -Port: FTP Server Port -File Type: Json -Folder: Sreymay/Inbound/Json -File Name:Final_json5.json

You will get a success message when the route started successfully.

Summary: We have learned how to use an inbound Agent File adapter for reading using the new event-driven mode with the consumer. In this adapter, we can do inbound with CSV, Excel, XML, and Json data records.

Open this article in the interactive viewer →