设置变量 |
“设置变量”操作会为现有变量或指定的新变量设置值。
You can configure the following properties for the Set Variable action:
操作
名称: 指定操作的名称。 如果需要,可以通过在字段中键入新名称来替换默认名称。
描述: 用于保存操作的描述。
Run Action: 用于指定希望运行操作的频率。
始终: 指定 Integration Service 将在每次运行集成时运行操作。
从不: 指定 Integration Service 将不会在运行集成时运行操作。
Conditionally, based on variable: Specifies that the Integration Service will run the action only when a selected variable meets a specified condition. 在仅有一个条件可以确定是否运行操作的情况下才可使用此选项。 只要启用了此选项,就可以在提供的输入框中创建条件语句。
根据表达式,在一定条件下: Specifies the conditions under which the Integration Service will run the action. 此选项在需要不只一个条件语句的情况下使用。 只要启用了此选项,就可以通过创建所需的条件语句在提供的输入框中创建条件表达式。 You create and edit your conditional expression on the Tree View tab. Click the Text View tab to see a read-only text view of the conditional expression.
变量
名称: 显示变量的名称。 You can enter a new name in the text box.
值: 指定变量的值。 You can enter a new value in the text box.
导入: 打开“打开文件”对话框,浏览到包含希望分配给变量的值的文件并选中。 The contents of the file are imported into the Value field.
导出: 打开“保存文件”对话框以便将“值”字段中的内容另存为外部文件。 可以将值另存为新文件或替换现有文件的内容。