Configure real-time mode variables
Assign values to variables in a computing task so they are automatically substituted at runtime. This topic uses Flink SQL as an example.
Procedure
-
On the Dataphin home page, choose Development in the top menu bar. The Data Development page opens.
-
Select the target task as shown below to open the Configuration panel.

-
In the Variable Configuration section, configure task parameters.
The code editor preloads existing parameters. Add parameters using the Expression format:
${variable_name}. You can also change the parameter type or assign values in the Variable Configuration list.
NoteSelect one or more parameters, then click
to batch-edit the parameter type.Parameter
Description
Parameter Name
The parameter name defined in the code editor. Supports letters, numbers, underscores (_), dots (.), and hyphens (-). Maximum 32 characters.
Parameter Type
Includes global variables, space name variables, local variables, and non-variable types. For more information, see Variable classification and assignment.
Parameter Value
-
Global Variable: Inherits the value from the global variable definition. Cannot be manually set. Create a global variable.
-
Space Name Variable: Value is the space name. Cannot be converted to other types.
-
Local Variable: Up to 258 characters. Can be left empty.
-
Non-variable: Cannot be defined.
-
-
Click OK to save the Variable Configuration.