# UC17

### **UFA --> AMF -->S3**

**Use Case:** Partner33 (Sender) send files to AMF via UFA Protocol, we use PGP decrypt, ZIP and Deliver those files to the Partner34 (Receiver) using S3 Protocol via AMF (Agile Messaging Framework).&#x20;

**Sequence Diagram:**

<figure><img src="/files/vylPDfxKI9s46aCErIqV" alt=""><figcaption></figcaption></figure>

**Steps:**&#x20;

A. Onboard Partner33 and Partner34 in using AMF&#x20;

B. Install UFA agent for  Partner33.

C. Create Message Type or use the existing one in AMF

D. Onboard Partner33 UFA Upload profile (Customer Initiated Communication Profile (Inbound)).&#x20;

E. Create PGP Decrypt Action as Action Type

F. Create ZIP Action as Action Type

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

H. Create Workflow Definitions and add Actions (Created in **step E**, **step F and step G)** as step1, step2 and step3 respectively.

I. Create Workflow Rule with Sender, Receiver, MessageType and Workflow Definition Name (Created in **step H**).&#x20;

J. Onboard Partner34 S3 Profile in AMF (MFT Initiated Communication Profile (Outbound)).&#x20;

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

L. Verify the Message Activity in AMF once the Partner33 uploads the file to AMF via UFA Protocol. If everything was configured correctly, the file will be delivered to Partner34 via S3 protocol.

**Process:**

**A. Onboard Partner33 and Partner34 in AMF:**

Login to **AMF**

![](/files/WlmyWOdJ3AwK1b1ddaB3)

Go to Onboarding **-> Users**

![](/files/loCMbK9UlBOlBwI6Y7Vq)

Click on + icon at the top right corner

![](/files/PlbTROLZpbz5wbgWP34y)

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

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

<figure><img src="/files/CYcrTCr5uYYLnC0DnU7i" alt=""><figcaption></figcaption></figure>

Select the provider the Partner belong to and click next

1. **AMF:** AMF provider is used to onboard partners which use UFA
2. **IBM:** This will come from the providers config. We can choose several types based on the provider's config.
3. **OpenLdap:** We need to select this if we selected the AuthenticationType as LDAP in the step&#x32;**.**

<figure><img src="/files/pxwrhf1vijJNII0a4JAs" alt=""><figcaption></figcaption></figure>

Verify the Partner details and click Onboard User.

![](/files/BNLw2fhHqbW5C1nHHHK2)

Repeat the same steps for Partner34 using AMF.

**B. Install UFA agent Partner33.**

Please refer the UFA installation document for this step

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

Go to Message Types under Onboarding

<figure><img src="/files/Rmh7Gd3Ws9HFCoAfiffb" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/n00S0E5cqc4KgSnbUS7e" alt=""><figcaption></figcaption></figure>

**Note**: In this scenario we will use the existing Message Type (GENERIC)

**D. Onboard Partner33 UFA Upload profile (Customer Initiated Communication Profile (Inbound)).**&#x20;

Double click on Partner33

<figure><img src="/files/248vbulmNbqO5c9JCimp" alt=""><figcaption></figcaption></figure>

Click on + icon at the top right corner

![](/files/Hi1CKdFU8HEF9BOlAcEn)

Select the protocol as UFA, operation as Upload, give the remaining details and click save

<figure><img src="/files/EMKFxkM5pz5Japu7THfx" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/vniXIaMiOklBkZp8jgiz" alt=""><figcaption></figcaption></figure>

1. **Upload Folder**: Folder where the files will be placed to deliver to AMF.
2. **File Pattern**: File pattern to filter the files.
3. **Sender**: Sender name who is sending files
4. **Receiver**: Receiver name to whom we are delivering files via AMF (Partner34 in this case).
5. **Message Type:** Message Type we used in this case (GENERIC)
6. **Polling Interval:** The polling interval between the sync between UFA agent and server.
7. **Archive Flag:** Option to enable or disable the archives.
8. **Archive Folder:** Folder to archive the files if we enabled **vii**
9. **Run Script Before Upload:** Script name with path if we want to run any scripts before the file upload.
10. **Chunk Size:** Size of the files that will be transferred in bits when there is a large file transfer
11. **PGP Encrypt:** Option to encrypt the uploaded file.
12. **Validate MD5 Check Sum:** Option to validate the MD5 Checksum on uploaded files.

**E. Create PGP Decrypt Action as a Action Type**

Go to Actions under Onboarding-> Workflow

![](/files/gtuimBRR68LYFizULUdF)

Click on + icon to create new action

![](/files/JAardY1bVfBZcYAeVqrl)

Give Action Name Select PGP Decrypt as Action Type and click save.

![](/files/8bY3Rl84gsy0ouAX3fNM)

**F. Create ZIP Action as a Action Type**

Go to Actions under Onboarding-> Workflow

![](/files/DfY4aU19xHFH5foXgXXR)

Click on + icon to create new action

![](/files/m6iGVeAZhzkEcoY1Vv2P)

Give Action Name Select ZIP as Action Type and click save.

![](/files/XOKyT1G3JY0tHCMR62eh)

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

Go to Actions under Onboarding->Workflow

<figure><img src="/files/38CKE2hrc5D5ht1zRoL2" alt=""><figcaption></figcaption></figure>

Click on + icon to create new action

![](/files/3aYxqotjgvuBigDhnpyz)

Give Action Name Select Deliver as Action Type and click save.

![](/files/KTKdZ0umCJghH2p7sXB6)

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

**H. Create Workflow Definitions and add Actions (Created in step E, step F and step G) as step1, step2 and step3 respectively.**

Go to Definitions under Onboarding->Workflow

![](/files/Fah22sHddvVlUxoqkeFi)

Click on + icon at the top right corner

![](/files/Cp2XvVdyRdCqSVpJpO6s)

Give Workflow Name, Description and Click Save

![](/files/S9RdRCm6dFS9EKldSABH)

Double click on the Workflow Definition Name

![](/files/WnXdXm0aAXDAALGCs8WS)

Click on the + icon at the top right corner

![](/files/Z7c2JCEhjMBJhzy2RUkp)

Select the Action that we created in **step E** as step1 and click Save

![](/files/ypXDHfXmm5ukogv2OPeZ)

Select the Action that we created in **step F** as step2 and click save

![](/files/TxNFxSOG1SpmcjqBnGxz)

Select the Action that we created in **step G** as step3 and click save

![](/files/6yaMYKj2nwR90AU067iH)

![](/files/D5HbdU6cjBoHA3E3OdHm)

**I. Create Workflow Rule with Sender, Receiver, Message Type and Workflow Definition name (Created in step H).**&#x20;

Go to Rules under Onboarding -> Workflow

![](/files/AZL1Mmiwht7ooODTwD89)

Click on + icon at the top right

![](/files/1zH4pcl8x0CbsF6P0uZd)

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

![](/files/qSU2ZamaUvCIviIW7Nkf)

**J. Onboard Partner34 S3 Profile in AMF (MFT Initiated Communication Profile (Outbound)).**&#x20;

Double click on the Partner34

<figure><img src="/files/E0UYfIoMFxCduKnPfyAN" alt=""><figcaption></figcaption></figure>

Click on + icon in the top right corner

<figure><img src="/files/J009R6k0maCqhROyrp0w" alt=""><figcaption></figcaption></figure>

Give details of the S3 and click save

<figure><img src="/files/S8FnrJ2QsXkGWnN3ZyvN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/JIfhaH9WImhzMBawf3Tz" alt=""><figcaption></figcaption></figure>

Give details and click save

1. **S3 bucket**: S3 Bucket name
2. **S3 Region**: Region where S3 belongs
3. **S3 Access Key ID**: Access key ID of the S3 bucket
4. **S3 Secret Key**: Secret key of S3 bucket
5. **Message to Process**: Option to process the original or current message
6. **Proxy Required**: Option to open connections via proxy server
7. **Proxy URL**: Proxy server URL (If proxy was enabled)
8. **Upload Path:** Path to upload files
9. **Cleanup 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)

<figure><img src="/files/n6Nw1sUZ4QjtzC9rwJ4p" alt=""><figcaption></figcaption></figure>

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

Go to Rules under onboarding-> Communication

![](/files/N6lxg9qxqySOtmCE0b0B)

Click on + icon at top right corner

![](/files/xtnX0N5vbvdeVxirtzTp)

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

![](/files/ESO5QzA8R2NHeyyU3SMb)

**L. Verify the Message Activity in AMF once the Partner33 uploads the file to AMF via UFA Protocol. If everything was configured correctly, the file will be delivered to Partner34 via S3 Protocol.**

Go to Message Activity under Track N Trace

![](/files/DjgZ1dPyQJaalAblrnjb)

To see more details of the delivered double click on the record.

<figure><img src="/files/dKNqnpDFjtR3Z7Jlg2Pi" alt=""><figcaption></figcaption></figure>


---

# 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/uc17.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.
