> For the complete documentation index, see [llms.txt](https://amfdocs.mftlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amfdocs.mftlabs.io/agile-messaging-framework/tutorials/usecases/uc06.md).

# UC06

### **SFTP --> SFG --> AMF --> SFG --> CD**

**Use Case:** Partner11 (Sender) send files to SFG via SFTP protocol, we deliver those files to Partner12 (Receiver) using CD protocol from SFG via AMF (Agile Messaging Framework).

**Sequence Diagram:**

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FLijqlGZQz2DFBXc7cckh%2FUC06.drawio.png?alt=media&amp;token=f6ed16d5-9821-4190-b6e0-b98ce8652072" alt=""><figcaption></figcaption></figure>

&#x20;

**Steps:**

A. Onboard Partner11 and Partner12 in SFG using AMF.

B. Onboard Partner11 SFTP profile in SFG using AMF (Customer Initiated Communication Profiles (Inbound)).

C. Onboard Partner12 connect direct node in SFG using AMF (Customer Initiated Communication Profiles (Inbound)).

D. Create Message Types or use the existing one in AMF.

E. Create Message Mapping with Sender, Receiver and Message Type with a file pattern.

F. Create **EOL Conversion** Action with adding file name format.

G. Create Delivery Action or use the predefined one (Deliver as is).

H. Create Workflow Definition and add Actions (Created in **step F** and **step G**) as step1 and step2.

I. Create Workflow Rule with Sender, Receiver, Message Type and Workflow Definition Name  (Created in **step H**).

J. Create MFT Initiated CD profile for outbound delivery in Partner12.

K. Create Communication Rule with Sender, Receiver, Message Type and Comm profile Name.

L. Verify the Message Activity in AMF once Partner11 uploads the file to SFG via SFTP protocol. If everything was configured correctly, the file will be delivered to Partner12 via CD protocol.

**Process:**

**A. Onboard Partner11 and Partner12 in SFG via AMF:**

Login to **AMF**

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FfFwPEuMM3s3OXBZWtNk9%2F0?alt=media)

Go to Onboarding -> **Users**

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FeUypAO2JfKtpu6zF6OBS%2F1?alt=media)

Click on **+** icon at the top right corner

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FV4hfTFPYEEsvOXTO2i7b%2F2?alt=media)

Select Customer and give details of Partner11, select User Type, Authentication Type and click next.

1. **User Type**: Which Zone does the Partner belong to send or receive files? (DMZ or Trusted)
2. **Authentication Type**: Where do we store the Partner credentials? (LDAP or local (SFG/AMF) or Both

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FXzVKVcOCqKjn348Tp4MW%2F3?alt=media" alt=""><figcaption></figcaption></figure>

Select the provider the Partner belongs to and click next

1. **AMF:** AMF provider is used to onboard Partners which use UFA
2. **IBM: This** will come from the provider’s config. We can choose several types based on the provider's config.
3. **OpenLdap:** We need to select this if we selected the Authentication Type as LDAP in the step **2.**

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FXay6BVNndbHEH3XZVhoI%2F4?alt=media)

Verify the Partner details and click **Onboard User**.

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FaxIVZLYH7vo2tPXf67vX%2F5?alt=media" alt=""><figcaption></figcaption></figure>

**B. Onboard Partner11 SFTP in SFG using AMF (Customer Initiated Communication Profiles (Inbound)).**

Double click on the Partner11

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FUa6d14xhy6qt3tUtfNIl%2F6?alt=media" alt=""><figcaption></figcaption></figure>

Click on + icon in the top right corner

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FHSTSvyAbErNEnoMJydtl%2F7?alt=media" alt=""><figcaption></figcaption></figure>

Give details of the SFTP Inbound and click save

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FsIHlnvTpZRC5AthtYaPD%2F8?alt=media" alt=""><figcaption></figcaption></figure>

Once the Onboarding was done, we can see the status as completed.

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FWby04UYZfpRODd2ayxYm%2F9?alt=media" alt=""><figcaption></figcaption></figure>

**C. Onboard Partner12 CD profile in SFG using AMF (Customer Initiated Communication Profiles (Inbound) and MFT Initiated Communication Profiles (Outbound)).**

Double click on the Partner12

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FS7gE6t0DtW3LVQ5HXc9J%2F10?alt=media" alt=""><figcaption></figcaption></figure>

Click on + icon in the top right corner

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FZPzCB8eP1NiRu8e4CSGP%2F11?alt=media" alt=""><figcaption></figcaption></figure>

Give details of the CD Profile and click save

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FszzYPDRYF8FHhFKGViFB%2F12?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FUWpQheGWKd3Wpkar9B2M%2F13?alt=media" alt=""><figcaption></figcaption></figure>

1. **Operating System:** Operating system of the Partner12
2. **SPOE:** Option to enable/disable Secure point of entry
3. **Node Name:** Node name of Partner12 CDNode
4. **Host Name/IP:** Host/IP of the Partner12 CDNode
5. **Port:** Port of the Partner12 CDNode
6. **Alternate IPs:** we can give there are any alternate IPs for this CD node
7. **Secure+:** Option to enable/disable secure+ for SSL
8. **Cert File:** Public cert of the Partner12 CDNode (In txt format with no headers)
9. **Common Name:** Common name of the CD\_PARTNER12
10. **TLS Version:** TLS version to be used in the communication
11. **Ciphers:** Ciphers to be used in the communication

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FGXcFNSUhledkwzaV8SV2%2F14?alt=media" alt=""><figcaption></figcaption></figure>

Once the Onboarding was done, we can see the status as completed.

**D. Create Message Types or use the existing one in AMF:**

Go to Message Types under Onboarding

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fltb1hlZ8qzccGPPCkws5%2F15?alt=media" alt=""><figcaption></figcaption></figure>

Click on + icon in the right corner to add a new Message Type

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FvE8dQdBcXHasZ4JdaOVJ%2F16?alt=media" alt=""><figcaption></figcaption></figure>

**Note**: In this scenario we will use the existing message type (GENERIC)

**E. Create Message Mapping with Sender, Receiver and Message Type with a file pattern:**

Go to Message Mapping under Onboarding

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FrN8qW802OZaelrqdcuF7%2F17?alt=media)

Click on + icon at the top right corner

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FnALLwd01PCTo8J4aamEK%2F18?alt=media)

Select Sender, Receiver, and Message Type give pattern of the files that Partner11 will send and click save.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Friulf4zavEaSWkcOoXk1%2F19?alt=media)

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F4h5yECRbbNdx2FY9rO2p%2F20?alt=media)

**F.. Create** **EOL Conversion Action with adding file name format.**

Go to Actions under Onboarding-> Workflow

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FUYM5S9mZE8Bihv2Pxp8S%2F0?alt=media" alt=""><figcaption></figcaption></figure>

Click on + icon at the top right corner

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F0S82tK2u30vw7vspgeHj%2F1?alt=media)

Give Name, select EOL Conversion as Action Type, and in the file name format give the required name (NewFileName.txt)

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FCgfjkwP8xgt1qecUwInx%2F2?alt=media)

**G. Create Delivery Action or use the predefined one (Deliver as is):**

Go to Actions under Onboarding-> Workflow

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FUYM5S9mZE8Bihv2Pxp8S%2F0?alt=media" alt=""><figcaption></figcaption></figure>

Click on + icon at the top right corner

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F0S82tK2u30vw7vspgeHj%2F1?alt=media)

**Note**: In this scenario we will use the existing Action (Deliver as is)

**H. Create Workflow Definition and add Actions (Created in step Fand step G) as step1 and step2.**

Go to Definitions under Onboarding->Workflow.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FKAcOfMD34KiGpOdvOAPG%2F3?alt=media)

Click on + icon at the top right corner

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FCnuiCgv4TiCeuPJtLb9a%2F4?alt=media)

Give Workflow Name, Description and click save

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FG55n3rNZE4DCBQhd7GKx%2F5?alt=media)

Double click on the Workflow Definition name

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FERF8nsIVYg9zulWBI533%2F6?alt=media)

Click on the + icon at the top right corner

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FfHDYAJBhaHTHftNMsy5E%2F7?alt=media)

Select the action that we created in **step F** as step1 and click save.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fl9p9JF9LfMDaGfHRYVUD%2F8?alt=media)

Select the action that we created in **step G** as step2 and click save.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fb7Hzj124JZPDHj6TKyjB%2F9?alt=media)

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FBFpLD6pbArIAetKfJBX1%2F10?alt=media)

**I. Create Workflow Rule with Sender, Receiver, Message Type and Workflow Definition**

**Name (Created in step H).**&#x20;

Go to Rules under Onboarding -> Workflow

!\[Graphical user interface, application

Description automatically generated]\(/files/Oc0GuiCck6kGGBhXQaWw)

Click on + icon at the top right.

!\[Graphical user interface, application, table

Description automatically generated]\(/files/0obc2MF68nsYkmA9vpF5)

Give Sender, Receiver, Message Type and Workflow (Created in **step H**) and click on save.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FH4OyGRxfTOkpBxbWZfM7%2F13?alt=media)

**J. Create MFT Initiated CD profile for outbound delivery in Partner12.**

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FwUUzpL7saGNoIKXkpcYs%2Fimage.png?alt=media&amp;token=80735b4b-b2b1-421f-8ecc-8217959871f1" alt=""><figcaption></figcaption></figure>

click on + icon at top right corner.

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FLq5NAKSuvlbzQfKlQZrp%2Fimage.png?alt=media&amp;token=74dae01a-4be1-4c84-a86a-2c313544e7a0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fv4qcmNHEdcd5upBZWX0T%2F14?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fv9OOznhcLxTuToYrZREE%2F15?alt=media" alt=""><figcaption></figcaption></figure>

1\.   **SPOE**: Option to know if user will use SPOE or not (If SPOE was not used then we need to give Remote user ID and Remote Password)

2\.    **Submitter User ID:** Option to pass submitter user ID

3\.    **Remote User ID**: Remote User ID in the user node

4\.    **Use Source File Name**: Option to use source filename.

5\.  **Remote File Name:** Remote file name if you disabled the Use Source File Name in the 3-iv.

6\.  **Remote Path:** Path for the file to be placed.

7\.    **Disposition**: dropdown to select disposition of the file

8\.    **Binary mode:** Option to enable or disable binary mode for file transfer.

9\.    **Copy Statement Sys opts:** Option to execute copy step Sys opts. If we enable that we need to give the Sys opts to run

10\.  **Run Task:** Option to execute run task Sys opts. If we enable that we need to give the Sys opts to run

11\.    **Run Job:** Option to execute run job Sys opts. If we enable that we need to give the Sys opts to run

12\.   **Send Email Notifications**: Option to send email notifications for successful.

13\.  **Receivers Mail Ids:** Recipients mail addresses if we enable Send Email Notifications

14\.  **Clean-up on Delivery:** Option to clean the file in file system after the file was delivered (Once the file is cleaned, we cannot redeliver the file again)

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F24Kzi5hhJV62SQT699qT%2F16?alt=media)

**K. Create Communication Rule with Sender, Receiver, Message Type and Comm profile Name:**

Go to rules under Onboarding -> Communication.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F6OwR0ngSAPf9a3iFmCqE%2F17?alt=media)

click on + icon at top right corner.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FBQ97cHIKnusT4P85TVqx%2F18?alt=media)

Select Sender, Receiver, Message Type and Comm Profile Name and click on save.

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F2bH2Jm3MvnsA8qaSO5at%2F19?alt=media)

**L. Verify the Message activity in AMF once the Partner11 uploads the file to SFG via SFTP protocol. If everything was configured correctly, the file will be delivered to Partner12 via CD protocol.**&#x20;

Go to Message activity under Track N Trace

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fa47IRbnmTAXz7gIS13lW%2F20?alt=media)

To see more details of the delivery double click on the record&#x20;

Here we can see the Process Name, Process Number, Message ID, DDSN etc. for the file delivered to the Partner12

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FYVedGEZdXdJhOsHZqMkw%2Fimage.png?alt=media&amp;token=2ff63bcf-01c0-48bb-aba8-53caef7c7633" alt=""><figcaption></figcaption></figure>
