---
schema_version: "1"
id: 9159a33e9a5dcc26d87a830f15b3a68703a5a176e5a041a892238646cad475d9
title: 変換コードの個別ファイルへの移動 (Anypoint Studio)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mule-runtime/4.9/transform-move-transformations-separate-file-studio-task.md
canonical_url: https://docs.mulesoft.com/jp/mule-runtime/4.9/transform-move-transformations-separate-file-studio-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: eaa53970278248eb6f60ff88a43f1164dd3d702def5d1cbed7db00c8ebc36d80
description: MuleSoft Documentation Site
release: "4.9"
latest: false
---
# 変換コードの個別ファイルへの移動 (Anypoint Studio)

デフォルトでは、Transform Message コンポーネントの DataWeave コードは Mule XML ファイル内に記述されます。このコードを個別のファイル (​`.dwl`​) に記述して、XML から参照することもできます。これらのファイルは、ビルド時に Mule アプリケーションと一緒にバンドルされます。

DataWeave コードを ​`.dwl`​ ファイルにエクスポートするには次の手順を実行します。

1. **\[Edit Current Target (現在の対象を編集)\]**​ ボタンをクリックします。
    
    ![Transform Message コンポーネントの編集アイコン](/mulesoft/current/ja-jp/mule-runtime/4.9/_images/dw-multiple-outputs-edit.png)
2. **\[File (ファイル)\]**​ ラジオボタンを選択します。
    
    ![ソースコードを選択するオプションが含まれる対象出力ペイロード](/mulesoft/current/ja-jp/mule-runtime/4.9/_images/dataweave-externalfile2.png)
    
    - `.dwl`​ ファイルの名前を入力します。
    - **\[OK\]**​ をクリックします。

DataWeave コードが格納されたファイルがプロジェクトの ​`src/main/resources`​ フォルダーに作成されます。

## [](#関連情報)関連情報

[DataWeave 言語](https://docs.mulesoft.com/jp/mule-runtime/4.9/dataweave)

[Transform Message コンポーネント](https://docs.mulesoft.com/jp/mule-runtime/4.9/transform-component-about)