---
schema_version: "1"
id: 6f86994dfa6a3dbe0833b0a4575863726a169ab291e84e61b57c105104646127
title: Define Input and Output Structure of a Transformation (Design Center)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.6/transform-input-output-structure-transformation-design-center-task.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.6/transform-input-output-structure-transformation-design-center-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5eec302809d3bc85ea43ecfbc81b960bb4bb6dcfaad481f7e70ab6ea3168b644
description: MuleSoft Documentation Site
release: "4.6"
latest: false
---
---
product: Mule Runtime
version: 4.6
---

# Define Input and Output Structure of a Transformation (Design Center)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

To use the graphical view and construct mappings via drag and drop, the Transform component first
needs information about what fields are available for dragging and dropping.

If you plan to create your transformation entirely by writing DataWeave source code, you can skip
defining input and output and reference elements directly via code.

## Define Data Structure on Other Components

1.  Make sure that all other elements in the flow are fully configured.

    When all other elements are configured and you have a component that has a predicted data
    structure, the structure can be passed onto the Transform component.

2.  Manually define input and output data structures if Design Center cannot predict the data
    structure.

    For example, an HTTP Listener might receive requests containing any type of payload. If you know
    what this payload will look like, you can set the data type through the Input and Output tabs in
    the HTTP Listener dialog box.

## Define Data Structures in the Transform Component

1.  Click Set Data Type:

    - For the input pane, highlight the payload, attributes, or a variable and click the Set Data
      Type icon at the bottom of the input pane.

    - For the output pane, select the Set data type button. If the output pane has an existing data
      type, click the drop-down arrow at the top of the Output pane to set a new data type.

2.  Manually define the data structure by providing a sample or a schema.

## See Also

[DataWeave Language](https://docs.mulesoft.com/mule-runtime/4.6/dataweave)
