On the Workflow Parameters tab, you can assign a value to a variable or replace the value of a parameter for all nodes in the current workflow. This topic describes how to configure a workflow parameter. In this example, the value of the ReplaceMe parameter is replaced with ReplaceMe123 for all nodes in a manually triggered workflow.
Limits
- In manually triggered workflows, ODPS SQL nodes, Shell nodes, and sync nodes support
workflow parameters. The format for specifying a workflow parameter varies based on
the node type. For example, a workflow parameter is specified as x=y1.
- To configure the workflow parameter for an ODPS SQL node, double-click the node and click the General tab in the right-side navigation pane. On the General tab, enter x=aaa in the Arguments field. When the node is run, the value of the x parameter is replaced with y1. You can use ${x} to reference the workflow parameter in the code.
- To configure the workflow parameter for a Shell node, double-click the node and click the General tab in the right-side navigation pane. On the General tab, enter $x in the Arguments field. When the node is run, the value of the x parameter is replaced with y1. You can use $1 to reference the workflow parameter in the code.
- To configure the workflow parameter for a sync node, double-click the node and click the General tab in the right-side navigation pane. On the General tab, enter -p"-Dx=aaa" in the Arguments field. When the node is run, the value of the x parameter is replaced with y1. You can use ${x} to reference the workflow parameter in the code.
- In auto triggered workflows, only ODPS SQL nodes support workflow parameters.
- Before you use workflow parameters, you must configure the parameters of each single node in a workflow to ensure that each node is run as expected.
- If the value that is assigned to a workflow parameter is inconsistent with the value that is assigned to a node parameter, the value of the workflow parameter overwrites the value of the node parameter.
- Parameter names and values are case-sensitive.
Configure a workflow parameter
Configure the workflow parameter for an ODPS SQL node
Configure the workflow parameter for a Shell node
Configure the workflow parameter for a sync node
Run the workflow and view the results

- Right-click the ODPS SQL node and select View Log. Then, you can view the value that is assigned to the ReplaceMe parameter for the ODPS SQL node.
- Right-click the Shell node and select View Log. Then, you can view the value that is assigned to the ReplaceMe parameter for the Shell node.
- Right-click the sync node and select View Log. Then, you can view the value that is assigned to the ReplaceMe parameter for the sync node.
If you have not assigned a value to a workflow parameter on the Workflow Parameters tab for a manually triggered workflow, you must assign a value to the workflow parameter every time you run the workflow in the production environment.