All Products
Search
Document Center

DataWorks:Configure extension parameters (Advanced)

Last Updated:Mar 26, 2026

Extension parameters let you control where and how your extension runs — restricting it to specific workspaces, extension points, or node types without changing code. This topic describes the six built-in parameters and how to add custom parameters.

Prerequisites

Before you begin, ensure that you have:

  • An extension registered in DataWorks

  • The workspace IDs for any workspaces you want to target — get them via the ListProjects API or from the workspace configuration page in the DataWorks console

Define parameters in registration

Define parameters in the extension's registration information before using them in code. Each parameter goes on a new line and uses the key=value format. You can combine built-in and custom parameters.

To retrieve an extension's current parameter configuration, call the GetExtension API.

Extension parameters
If you configure the same key more than once, only the last value takes effect.

Built-in parameters

The following table summarizes the six built-in parameters and their scope.

ParameterScopePurpose
extension.project.disabledWorkspaceDisable the extension for specific workspaces
extension.project.disabled.appendWorkspaceAdd workspaces to an existing blocklist
extension.project.{eventCode}.disabledExtension point + workspaceDisable specific extension points in specific workspaces
extension.project.{eventCode}.disabled.appendExtension point + workspaceAdd workspaces to an existing extension point blocklist
extension.fileType.{fileType}.{eventCode}.enabledNode typeEnable or disable the extension for specific node types
extension.manualPass.enabledExtensionShow the Mark as Passed button

extension.project.disabled — workspace blocklist

Scope: Workspace level

Disable the extension for specific workspaces.

extension.project.disabled=projectId1,projectId2,projectId3
PlaceholderDescriptionHow to get it
projectIdWorkspace IDListProjects API or the workspace configuration page in the DataWorks console

Separate multiple workspace IDs with commas.

Example:

extension.project.disabled=projectId1

extension.project.disabled.append — append to workspace blocklist

Scope: Workspace level

Use extension.project.disabled to set the initial workspace blocklist. Use extension.project.disabled.append to add workspaces to an existing blocklist without overwriting it.

extension.project.disabled.append=projectId1,projectId2,projectId3
PlaceholderDescriptionHow to get it
projectIdWorkspace IDListProjects API or the workspace configuration page in the DataWorks console

Separate multiple workspace IDs with commas.

Example:

extension.project.disabled=projectId1
extension.project.disabled.append=projectId2

In this example, the extension is disabled for both projectId1 and projectId2.

extension.project.{eventCode}.disabled — extension point blocklist

Scope: Extension point + workspace level

Use extension.project.disabled to block all extension points in a workspace. Use extension.project.{eventCode}.disabled to block a specific extension point in specific workspaces.

extension.project.{eventCode}.disabled=projectId1,projectId2,projectId3
PlaceholderDescriptionHow to get it
eventCodeEvent type of the extension pointAppendix: Event details (eventType)
projectIdWorkspace IDListProjects API or the workspace configuration page in the DataWorks console

Separate multiple workspace IDs with commas.

Example:

extension.project.commit-file.disabled=projectId1
extension.project.delete-file.disabled=projectId2,projectId3

The first line disables the commit-file extension point in projectId1. The second line disables the delete-file extension point in projectId2 and projectId3.

If you configure the same key more than once, only the last value takes effect.

extension.project.{eventCode}.disabled.append — append to extension point blocklist

Scope: Extension point + workspace level

When extension.project.{eventCode}.disabled contains a single value (that is, its value is not a comma-separated list of multiple workspace IDs), use extension.project.{eventCode}.disabled.append to append a workspace to the extension point blocklist without overwriting it.

extension.project.{eventCode}.disabled.append=projectId1,projectId2,projectId3
PlaceholderDescriptionHow to get it
eventCodeEvent type of the extension pointAppendix: Event details (eventType)
projectIdWorkspace IDListProjects API or the workspace configuration page in the DataWorks console

Separate multiple workspace IDs with commas.

Example:

extension.project.commit-file.disabled.append=projectId1
extension.project.delete-file.disabled.append=projectId2,projectId3

extension.fileType.{fileType}.{eventCode}.enabled — node type filter

Scope: Node type level

Enable or disable the extension for specific node types.

extension.fileType.{fileType}.{eventCode}.enabled=true|false
PlaceholderDescriptionHow to get it
fileTypeType code for the node typeListFileType API
eventCodeEvent type of the extension pointAppendix: Event details (eventType)

Configuration modes

The values you set for configured node types determine the default behavior for all unconfigured node types:

ModeConfigured valuesDefault for unconfigured node types
Enable specific typesAll set to truefalse (extension does not run)
Disable specific typesAll set to falsetrue (extension runs)
MixedMix of true and falsefalse (extension does not run)

Example 1: Enable for specific node types

extension.fileType.10.run-file.enabled=true
extension.fileType.11.run-file.enabled=true
  • The extension runs for ODPS SQL (type 10) and ODPS MR (type 11) nodes.

  • The extension does not run for any other node type, such as Data Integration (DI) batch synchronization nodes.

Example 2: Disable for specific node types

extension.fileType.10.run-file.enabled=false
extension.fileType.11.run-file.enabled=false
  • The extension does not run for ODPS SQL or ODPS MR nodes.

  • The extension runs for all other node types, such as Data Integration (DI) batch synchronization nodes.

Example 3: Mixed mode

extension.fileType.10.run-file.enabled=false
extension.fileType.11.run-file.enabled=true
  • The extension runs for ODPS MR nodes only.

  • The extension does not run for ODPS SQL nodes or any other node type, such as Data Integration (DI) batch synchronization nodes.

extension.manualPass.enabled — manual pass button

Scope: Extension level

Set this parameter to show the Mark as Passed button in the Operations column for the extension.

extension.manualPass.enabled=true

Custom parameters

Define custom parameters in the same key=value format, one per line. Use them to pass arbitrary configuration values to your extension code at runtime.

Retrieve custom parameters alongside built-in ones by calling the GetExtension API.

What's next