# UC14

### **MFG --> SFG --> AMF --> SFG --> SFTP**

**Use Case:** Partner27 (Sender) sends files to SFG via HTTP protocol (MFG) we do EOL conversion and deliver those files to the Partner28 (Receiver) via SFTP protocol from SFG using AMF (Agile Messaging Framework).&#x20;

**Sequence Diagram:**

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fcpscg1k58R3z5u2lM7ej%2FUC14.drawio.png?alt=media&#x26;token=1043924e-7dd5-4084-8164-cea9f4831fb8" alt=""><figcaption></figcaption></figure>

**Steps:**

A. Onboard Partner27 and Partner28 in SFG using AMF.

B. Create Message Type or use the existing one in AMF:

C. Create Message mapping with Sender, Receiver and Message Type with a file pattern.

D. Create EOL Conversion Action as Action type.

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

F. Create Workflow definition and add Actions (Created in **step d** and **step e**) as step1 and step2.

G. Create Workflow rule with Sender, Receiver, Message Type and Workflow definition name (Created in **step f**).

H. Onboard Partner28 SFTP profile in SFG using AMF (MFT Initiated communication profiles (outbound)).

I. Create communication rule with Sender, Receiver, Message Type and Comm profile Name.

J. Verify the Message activity in AMF once the Partner27 uploads the file to SFG via HTTP protocol (MFG). If everything was configured correctly, the file will be delivered to Partner28 via SFTP protocol.

**Process:**

**A. Onboard Partner27 and Partner28 in SFG via AMF:**

Login to **AMF**

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

Go to On boarding -> **Users**

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F5S8RKYL8jW3T9scNYrIV%2F1.png?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%2Fb5kMfFrpK2vJNh6ahaFl%2F2.png?alt=media)

Select Customer and give details of Partner27, 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 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%2FWc402fIy39HW9Vvf3zjj%2F3.png?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 **4-ii.**

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

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%2FqLAwXBNwc0Qy2KhGpOeM%2F5.png?alt=media" alt=""><figcaption></figcaption></figure>

Repeat the same steps for Partner28.

**B. Create Message Type or use the existing one in AMF:**

Go to Message Types under On boarding

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FHBA4vCY6xh7aZsnc0pxg%2F6.png?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%2FD9korPwhGnbTf3PaESRa%2F7.png?alt=media" alt=""><figcaption></figcaption></figure>

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

**C. Create Message mapping with Sender, Receiver and Message Type with a file pattern:**

Go to Message mapping under On boarding

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FCTrvYRYYOSAEG4RxD6Nq%2F8.png?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%2Fa3lEaLi5p7y6kNQNR2h6%2F9.png?alt=media)

Select Sender, Receiver, and Message Type, give pattern of the files that Partner27 will send and clicks save.<br>

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

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

**D. Create EOL Conversion Action as Action type.**

Go to Actions under On boarding-> **Workflow**

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

Click on + icon to create new action

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

Give Name, select EOL conversion as action type and clicks save.

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FcP5PNTxgMguwp0pHVKih%2Fimage.png?alt=media&#x26;token=900d33f3-1a70-4a13-b7bc-7d6fb5da8e9f" alt=""><figcaption></figcaption></figure>

**E. Create** **Deliver as Action type or use the predefined one (Deliver as is)**

Go to Actions under On boarding-> **Workflow**

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

Click on + icon to create new action

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

Give Name and select Deliver as action type and clicks save.

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

**F. Create Workflow definition and add Actions (Created in step d and step e) as step1 and step2.**

Go to Definitions under On boarding->Workflow

![](https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2F8yP08jBVB2A2HMSdrSgc%2F0.png?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%2FQi40T4HAyOXS6VPJ6lnY%2F1.png?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%2FCqol3bldIW5Qj1wyXzII%2F2.png?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%2F85F3WSNV2tfYzkKa9KWe%2F3.png?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%2FXNQA041DkpYLK4pWNVfX%2F4.png?alt=media)

Select the EOL conversion action that we created in **step g** as step1 and click save.

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

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

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

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

**G. Create Workflow rule with Sender, Receiver, Message Type and Workflow definition Name (Created in step g).**&#x20;

Go to Rules under On boarding -> Workflow

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

Click on + icon at the top right

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

Give Sender, Receiver, Message Type, 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%2FY2Ft1h2Pqtsmg16MBqkR%2F10.png?alt=media)

**H. Onboard Partner28 SFTP in SFG using AMF (MFT Initiated communication profiles (outbound)).**

Double click on the **Partner28**

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fi0yXEhJh8JbOWxRmYXua%2F11.png?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%2F89zLuyDiZUBwfuq8CuXA%2F12.png?alt=media" alt=""><figcaption></figcaption></figure>

Give details of the SFTP outbound and click save

<figure><img src="https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fiydh3XYgizleKss6lmEZ%2F13.png?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%2FSV3AfoNQ24mTzVWxcJyw%2F14.png?alt=media" alt=""><figcaption></figcaption></figure>

1. **Remote Host**: Remote Host/IP of the user SFTP server
2. **Remote Port**: Port of the user SFTP server
3. **Remote User ID**: Remote User ID of user in the SFTP server
4. **Auth Type**: Auth type supported by Remote SFTP server (password or key)
5. **Use Source File Name**: Option to use source filename
6. **Remote File Name**: Remote file name if you disabled the Use Source File Name in the step5
7. **Remote Path**: Path for the file to be placed
8. **Use Temp File Name in Copy:** Option to use temp file name in copy
9. **Remote KHK (Known Host Key)**: Known host key of Remote SFTP server
10. **Send Email Notifications**: Option to send email notifications for successful delivery
11. **Receiver’s Mail Ids**: Recipients mail addresses if we enable Send Email Notifications.
12. **Clean up on delivery**: Option to clean the file system after the file was delivered (Once the file is cleaned, we cannot redeliver the file again)

**I. 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%2FFPQTMIMBZPfx5IvzR2RH%2F15.png?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%2Fe7kzX8q519O9LhQYUvzj%2F16.png?alt=media)

Select sender, receiver, Message Type, Comm profile name and click on save

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

**J. Verify the Message activity in AMF once the Partner27 uploads the file to SFG via HTTP protocol (MFG). If everything was configured correctly, the file will be delivered to Partner28 via SFTP protocol.**&#x20;

Go to Message activity under Track N Trace

Here we can see the details for the file Delivered to the Partner28

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://amfdocs.mftlabs.io/agile-messaging-framework/tutorials/usecases/uc14.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
