> 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/uc04.md).

# UC04

### **CD --> SFG --> AMF --> SFG --> MFG**&#x20;

**Use Case:** Partner07 (Sender) send files to SFG via CD protocol, we mailbox those files to the Partner08 (Receiver) using HTTP (MFG.) protocol from SFG via AMF (Agile Messaging Framework).&#x20;

**Sequence Diagram:**

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

**Steps:**&#x20;

A. Onboard Partner07 and Partner08 in SFG using AMF.&#x20;

B. Onboard Partner07 connect direct nodes in SFG using AMF (Customer Initiated communication profiles (Inbound)).&#x20;

C. Create Message Type or use the existing one in AMF.&#x20;

D. Create Message Mapping with Sender, Receiver and Message Type with a file pattern.&#x20;

E. Create Mailbox Action.&#x20;

F. Create Workflow definition and add Action (Created in step E) as step1.&#x20;

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

H. Verify the Message Activity in AMF once Partner07 uploads the file to SFG via CD protocol, if everything was configured correctly, the file will be Mailboxed to Partner08 via HTTP(MFG) protocol.&#x20;

**Process:**

**A. Onboard Partner07 and Partner08 in SFG via AMF:**

Login to AMF

![](/files/dAm2JjcCEUuOF8S0fMaJ)

Go to Onboarding -> Users

<figure><img src="/files/2c9STJ452JSdBoVfVezb" alt=""><figcaption></figcaption></figure>

Click on + icon at the top right corner

<figure><img src="/files/3Ar0spxMo0C89utoytxu" alt=""><figcaption></figcaption></figure>

Select Customer and give details of Partner07, select user Type, Authentication Type and click next.

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

<figure><img src="/files/xWDox1SRVvKtVQGtnqxL" 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 providers 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 step2

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

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

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

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

Repeat the above steps to onboard Partner08.

**B. Onboard Partner07** **Connect Direct nodes in SFG using AMF (Customer Initiated Communication Profile (Inbound)).**

Double click on the Partner07

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

Click on + icon in the top right corner

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

Give details of the Node and click save

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

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

Once the onboarding is done, we can see the status as completed.

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

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

Go to Message Types under Onboarding

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

Click on + icon in the right corner&#x20;

<figure><img src="/files/9eDoJqKdYHYQkg3C917T" alt=""><figcaption></figcaption></figure>

In this scenario we will create the message type CD\_UC04\_MFG

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

<figure><img src="/files/07mg9c13rnzed5E150B7" alt=""><figcaption></figcaption></figure>

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

Go to Message mapping under Onboarding

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

Click on +icon at the top right corner

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

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

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

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

**E. Create Mailbox Action**&#x20;

Go to Actions under Onboarding->Workflow

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

Click on + icon to create new action

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

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

1. **Mailbox Path**: Path of the receiver (Partner08) mailbox
2. **Extraction Count**: Option to add extraction for sent file (default value is 1).

**F. Create Workflow Definition and add Action (Created in step E) as step1.**&#x20;

Go to Definitions under Onboarding->Workflow.

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

Click on + icon at the top right corner

<figure><img src="/files/0SCvEipNiU0iLmSO0yBk" alt=""><figcaption></figcaption></figure>

Give Workflow Name, Description and click save

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

Double click on the Workflow Definition Name

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

Click on the + icon at the top right corner

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

Select the Action that we created in **step E** and click save

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

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

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

Go to Rules under Onboarding -> Workflow

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

Click on + icon at the top right

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

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

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

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

**H. Verify the Message Activity in AMF once Partner07 uploads the file to SFG via CD protocol. If everything was configured correctly, the file will be Mailboxed to Partner08 via HTTP(MFG) protocol.**&#x20;

Go to Message activity under Track N Trace

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
