# UC26

**MFG --> AMF -->UFA**

**Use Case:** Partner51 (Sender) send files to SFG via HTTP (MFG) Protocol. We PGP decrypt those files and Deliver to the Partner52 (Receiver) via HTTP (UFA) Protocol 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%2FnD4Tl75M7GNAQppRF0ke%2FUC26.drawio.png?alt=media&#x26;token=ac78c8f8-c852-46bf-94f0-9dff29f66f6b" alt=""><figcaption></figcaption></figure>

**Steps:**

A. Onboard Partner51 and Partner52 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. Install UFA agent (Partner52)

E. Onboard Partners Customer Initiated Download Profile.

F. Create Open PGP Decrypt Action as Action type.

G. Create Deliver 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. Verify the Message Activity in AMF once the Partner51 uploads the file to SFG via HTTP (MFG) Protocol. If everything was configured correctly; the file will be delivered to Partner52 via HTTP (UFA) Protocol.

**Process:**

**A. Onboard Partner51 and Partner52 in SFG via AMF:**

Login to **AMF**

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

Click on + icon at the top right corner

!\[Graphical user interface, text, application, Word

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2Fe0Z7NNbM9LhZn3YNMPko%2F2.png?alt=media>)

Select Customer and give details of Partner51, 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%2F8RAhHXp3oanF9t887mZs%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. **Open Ldap:** We need to select this if we selected the Authentication Type as LDAP in the step **-2.**

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

Repeat the same steps for Partner52. Use AMF Provider for UFA User.

**B. 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%2F2sK6FyYqHZVIg42iAQ8A%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%2FFaDnERK74d3ERpKte4cT%2F7.png?alt=media" alt=""><figcaption></figcaption></figure>

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

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

Go to Message Mapping under Onboarding

!\[Graphical user interface, application

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FMzoK8PGcAZkmKqAHhDl9%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%2FZ8hnglA1mVPpcrHVsBTq%2F9.png?alt=media)

Select Sender, Receiver, and Message Type give pattern of the files that Partner51 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%2FqCvNRa37ljP3KHNG096b%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%2FshPEelOS6Sl0YjKDh3QB%2F11.png?alt=media)

**D. Install UFA agent (Partner52).**

Please refer the UFA installation document for this step

**E. Onboard Partner52 Customer Initiated Download Profile:**

Double click on Partner52

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

Click on + icon at the top right corner

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

Select the Protocol as UFA, Operation as download give the remaining details and click save.

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

!\[A screenshot of a computer

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FnzvKpYzoKNVQTPgebWBr%2F15.png?alt=media>)

1. **Download Folder**: Folder where the files will come from AMF.
2. **Sender**: Sender name who is sending files (Partner52 in this case)
3. **Receiver**: Receiver name to whom we are delivering files via AMF (Partner51 in this case).
4. **Message Type:** Message type we used in this case (GENERIC)
5. **Polling Interval:** The polling interval between the sync between UFA agent and server.
6. **Run Script After Download:** Script name with path if we want to run any scripts after the file was downloaded.
7. **Chunk Size:** Size of the files that will be transferred in bits when there is a large file transfer
8. **PGP Decrypt:** Option to decrypt the downloaded file.
9. **Cleanup on delivery:** Option to clean the file in file system after successful delivery
10. **Clean Large Files:** Option to clean only large file that meets the threshold given (Sample shown below).
11. **Validate MD5 Check Sum:** Option to validate the MD5 Checksum on uploaded files.

**F. Create Open PGP Decrypt Action as Action Type.**

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%2FeqVdpSuLK6PzptPuhwrH%2F0.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%2FyPsLpEzfE4EfH3Kb5eSD%2F1.png?alt=media)

Give Name select Open Pgp Decrypt as Action Type and clicks save.

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

**G. 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%2F1M7N5tG0QeyPzCskutKM%2F3.png?alt=media" alt=""><figcaption></figcaption></figure>

Click on + icon to create new Action

!\[Graphical user interface, application, table

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FxNW7ZtFMszofBsBfVd6V%2F4.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%2FqJuavrKrO77gBv7Z3ane%2F5.png?alt=media)

**H. Create Workflow Definition and add Actions (Created in step F and step G) 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%2FkLb4LFV48EjqNnyHPREc%2F6.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%2FqxwsPXa3Y5unFNlMWcx8%2F7.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%2FZTiTHmiA5srZvcDCJOZE%2F8.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%2FCO1j9m99fgnhSeqWoI73%2F9.png?alt=media)

Click on the + icon at the top right corner

!\[A screenshot of a computer

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FetcrIBts6wIjEip64oic%2F10.png?alt=media>)

Select the Open Pgp Decrypt 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%2F7nPTY0KbgGzNaoSeNXdn%2F11.png?alt=media)

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

!\[A screenshot of a computer

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FMGtzU7DmM0G0Zd8f0UpR%2F12.png?alt=media>)

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

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

Go to Rules under on boarding -> Workflow

!\[Graphical user interface, application

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FlnPbPG1alOveyh8c0stR%2F14.png?alt=media>)

Click on + icon at the top right

!\[Graphical user interface, application, table

Description automatically generated]\(<https://529847091-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lEcft4Hj193xOMx83Gm%2Fuploads%2FacEOcnoJ61EPWxx9qPmj%2F15.png?alt=media>)

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%2FuHJrXrf8jV1OcOz3uONk%2F16.png?alt=media)

**J. Verify the Message Activity in AMF once the Partner51 uploads the file to SFG via HTTP (MFG) Protocol. If everything was configured correctly, the file will be delivered to Partner52 via HTTP (UFA) Protocol.**&#x20;

Go to Message Activity under Track N Trace

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

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