Create a script-based integration task

更新时间: 2026-06-08 19:48:47

Create a data synchronization task by writing JSON scripts directly, which provides more flexible capabilities and fine-grained configuration control.

Prerequisites

The source and target data sources are configured. For supported data sources, see Data integration supported data sources.

Procedure

Step 1: Create an offline script

  1. On the Dataphin home page, choose Development > Data Integration from the top menu bar.

  2. Open the Create Offline Script dialog box:

    Select a project (in Dev-Prod mode, also select the environment) > Click Batch Pipeline > Click the image New icon > Click Batch Script.

  3. Configure the parameters in the Create Offline Script dialog box.

    Area

    Parameter

    Description

    Basic Information

    Task Name

    Name the script. Naming rules:

    • All characters except | : ? <> * " / and \.

    • Maximum 64 characters.

    Schedule Type

    Select the Schedule Type:

    • Recurring Task Node: Periodic execution.

    • Manual Node: Manual execution, no dependencies.

    Description

    Brief description of the script. Maximum 1000 characters.

    Select Directory

    Defaults to the offline pipeline directory. You can create and select a different folder.

    image

    Datasource Config

    Source Type

    Select the source type.

    Datasource

    Select the source. If unlisted, click Create. Data integration supported data sources.

    Note

    Only data sources with read-through permissions are listed. Request data source permission.

    Target Type

    Select the target type.

    Datasource

    Select the target. If unlisted, click Create. Data integration supported data sources.

    Note

    Only data sources with write-through permissions are listed. Request data source permission.

  4. Click OK.

Step 2: Develop the offline script

Develop the script using the code editor. The JSON script provides flexible data synchronization capabilities with fine-grained configuration control.

Note

Maximum input: 500,000 characters.

image

Step 3: Configure the pipeline schedule

  1. Click image on the development canvas menu bar to open schedule configuration.

  2. Configure the following settings for the integration pipeline:

  3. Click OK.

Step 4: Save and submit the offline integration task

  1. Click the Save icon at the top of the canvas to save the task.

  2. Click the Submit icon to submit the task. In the Submit Remarks dialog box, enter remarks and click OK And Submit.

    Dataphin performs lineage analysis and submission checks upon submission. Integration task submission instructions.

What to do next

  • In Dev-Prod mode, publish the task. Manage publishing tasks.

  • In Basic mode, the task is scheduled in production upon successful submission. View published tasks in the Operation Center. .

上一篇: Create an integration task using a single pipeline 下一篇: Configure offline pipeline task properties
阿里云首页 智能数据建设与治理 Dataphin 相关技术圈