# Publish the Workflow to Data Mover

In **Data Shaper**, each workflow must be linked to an **Asynchronous Web Service**, which is listed under the **Asynchronous Web Service** folder. This association is essential for enabling the workflow to be executed by the **Data Shaper 2.0 Processor** service task.

<figure><img src="/files/1AcF6CS3bHDZ5xvzbKUq" alt=""><figcaption></figcaption></figure>

An Asynchronous Web Service acts as metadata that references the **physical path** of the workflow. This path is displayed in the **Filename** field and is used by the system to locate and execute the workflow during processing.

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

When defining a **mediation contract** in Data Mover, the **Datashaper Payload** drop-down menu will list the Data Shaper workflows of the **Asynchronous Web Service** folder. Selecting a Data Shaper workflow ensures it is triggered correctly.

<figure><img src="/files/xUlijxX81gz3CQFhfjHM" alt="" width="563"><figcaption></figcaption></figure>

Refer to the [Defining a mediation contract using the Data Shaper workflow template](/data-shaper-1.21/using-data-shaper-in-data-mover/defining-a-mediation-contract-using-the-data-shaper-workflow-template.md) page for details.&#x20;

#### Creating a New Asynchronous Web Service

To create a new Web Service:

1. Navigate to the **main page**.
2. Right-click on the **Asynchronous Web Service** folder.
3. Select **New** from the context menu.

<figure><img src="/files/SpomlAayEyzWN7SFsDYu" alt="" width="309"><figcaption></figcaption></figure>

Complete the form with the following details:

* **Name**: assign a unique name to the Web Service.
* **Filename**: click the **Browse** button and navigate to the physical path of the workflow you want to associate.
* **Workflow Run Configuration**: select **Local**.
* **Status Variables**: this field can be left empty.
* **Content Variable**: leave ASYNC\_CONTENT.

The Web Service will now appear in the **Asynchronous Web Service** folder and be available for selection in the **Datashaper Payload** drop-down when defining a mediation contract.


---

# 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://docs.primeur.com/data-shaper-1.21/using-data-shaper-in-data-mover/using-the-data-shaper-designer/publish-the-workflow-to-data-mover.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.
