This topic describes how to use the code editor to configure a batch synchronization node that is periodically scheduled and how to commit and deploy the node.
Prerequisites
- The required data sources are configured. Before you configure a data synchronization
node, you must configure the data sources from which you want to read data and to
which you want to write data. This way, you can select the data sources when you configure
a batch synchronization node. For information about the data source types, Reader
plug-ins, and Writer plug-ins that are supported by batch synchronization, see Supported data source types, readers, and writers.
Note For information about the items that you need to understand before you configure a data source, see Overview.
- An exclusive resource group for Data Integration that meets your business requirements is purchased. For more information, see Create and use an exclusive resource group for Data Integration.
- Network connections between the exclusive resource group for Data Integration and data sources are established. For more information, see Establish a network connection between a resource group and a data source.
Go to the DataStudio page
- Log on to the DataWorks console.
- In the left-side navigation pane, click Workspaces.
- In the top navigation bar, select the region where the desired workspace resides. On the Workspaces page, find the workspace and click DataStudio in the Actions column. The DataStudio page appears.
Procedure
- Step 1: Create a batch synchronization node
- Step 2: Convert from the codeless user interface (UI) to the code editor and apply a script template
- Step 3: Configure the batch synchronization node
- Step 4: Configure scheduling properties for the batch synchronization node
- Step 5: Select an exclusive resource group for Data Integration
- Step 6: Commit and deploy the batch synchronization node
Step 1: Create a batch synchronization node
Step 2: Convert from the codeless user interface (UI) to the code editor and apply a script template
Click the Switch to Script Mode icon in the top toolbar.
If no script is configured, you can click the icon in the top toolbar to apply a script template.
Step 3: Configure the batch synchronization node
The following figure shows the common settings that are used to configure a batch synchronization node in the code editor.- DataWorks provides default settings for the type and version parameters. You cannot change the default settings.
- You can ignore the processor-related settings in the code. The settings are not required.

Step 4: Configure scheduling properties for the batch synchronization node
If you want DataWorks to periodically schedule your batch synchronization node, you must configure scheduling properties for the node. This step describes how to configure scheduling properties for a batch synchronization node. You can go to the configuration tab of the batch synchronization node, click Properties in the right-side navigation pane of the configuration tab, and then configure scheduling properties for the batch synchronization node. You can configure the following properties for a batch synchronization node: For information about how to use scheduling parameters, see Description for using scheduling parameters in data synchronization.- Configure scheduling parameters: You can assign scheduling parameters to the variables that are used in the configurations of the batch synchronization node.
- Configure time properties: The time properties define the mode in which the batch synchronization node is scheduled in the production environment. In the section in which you configure time properties for the batch synchronization node, you can configure attributes such as the instance generation mode, scheduling type, and scheduling cycle for the node.
- Configure the resource property: The resource property defines the exclusive resource group for scheduling that is
used to issue the batch synchronization node to the related exclusive resource group
for Data Integration. You can select the exclusive resource group for scheduling that
you want to use.
Note DataWorks uses resource groups for scheduling to issue batch synchronization nodes in Data Integration to resource groups for Data Integration and uses the resource groups for Data Integration to run the nodes. You are charged for using the resource groups for scheduling to schedule batch synchronization nodes. For more information about the node issuing mechanism, see Mechanism for issuing nodes.
Step 5: Select an exclusive resource group for Data Integration
In the right-side navigation pane of the configuration tab of the batch synchronization node, click Configure Resource Group for Data Integration. On the Configure Resource Group for Data Integration tab, you can select an exclusive resource group for Data Integration from the Exclusive Resource Group for Data Integration drop-down list.
Step 6: Commit and deploy the batch synchronization node
If you want DataWorks to periodically run the batch synchronization node, you must deploy the node to the production environment. For more information about how to deploy a node, see Deploy nodes.