搜索并在前面插入 |
“搜索并在前面插入”操作在指定源中搜索文本或字符并直接在其前面插入提供的内容。
可以为“搜索并在前面插入”操作配置以下属性:
操作
名称: 指定操作的名称。 如果需要,可以通过在字段中键入新名称来替换默认名称。
描述: 用于保存操作的描述。
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.
来源
来源: 指定希望执行操作的数据的来源。
值: 使用提供的输入框输入想要操作使用的数据。 Alternatively, you can add a variable to specify the data, or add a special character to the value you have entered.
导入: 打开“打开文件”对话框以便浏览到包含所需数据的文件,并将其选中。 系统会将该文件的内容导入到“值”输入框中。
导出: 打开“保存文件”对话框以便将“值”输入框中的内容另存为外部文件。 可以将值另存为新文件或替换现有文件的内容。
变量:
变量: 键入指定想要为来源使用的变量。 或者,可以添加一个变量。
外部文件:
位置: 指定源文件夹所在的文件系统。 File systems or locations can include local file systems or network shares, Librarian, or a supported cloud storage location. For more information about supported cloud storage locations, see Administration Console's
文件名: 指定文件路径。 可以键入文件夹位置和文件名称,或单击“浏览”以找到所需的文件并选中。 Alternatively, you can add a variable to specify the desired file, or add a special character to the value you have entered.
文件编码: 指定源文件使用的编码。
选项
搜索: Specifies the text or characters you want to search for in the source. Alternatively, you can add a variable to specify your search term, or add a special character to the value you have entered. You also have the option of using a regular expression or wildcard modifier to make your search more specific.
搜索方法: Specifies the method to use for performing the search:
Literal: 仅搜索输入的文本。
Use Wildcards (* and ?): 使用通配符字符展开或重新定义搜索的搜索。
使用正则表达式: 使用正则表达式展开或重新定义搜索的搜索。
搜索文本包含变量: 启用此选项后,指定搜索文本中包含一个或多个变量,在某些情况下会在操作之前处理搜索文本中的变量。
插入: 指定希望插入的文本或字符。 输入所需的内容。 Alternatively, you can add a variable specifying the content to insert, or add a special character to the value you have entered.
所有项目: When enabled, the provided text or characters will be inserted for each instance of the search text or characters found.
仅第一个出现: 启用此选项后,将仅会为找到的搜索文本或字符的第一个实例插入提供的文本或字符。
前 {#} 个出现: 启用此选项后,将仅会为找到的搜索文本或字符的指定数量的实例插入提供的文本或字符(按找到的顺序)。
插入文本包含变量: 启用此选项后,在插入文本之前,会先处理插入文本中包含的任意变量。
输出
Save output to variable: 指定想要保存操作输出的变量。 输入所需变量。 或者,可以添加一个变量。
测试搜索并在前面插入
测试: 运行操作。 The Message pane displays information on the success or failure of the action.
|
Clicking the Test button executes the action only and does not run the integration. 因此,操作将会在不使用曾经可能配置为使用的集成中的任何数据的情况下运行。 For information on testing your integration, refer to Using the Test Pane. |
用户帐户
Inherit from parent action: When enabled, the action inherits the user account credentials specified on the Actions property page. Alternatively, if the action is part of a Group action, it will inherit the user account credentials specified on the immediate parent Group action’s property page.
指定用户凭据: 启用此选项后,会使用指定的凭据运行操作。
错误处理和诊断
Ignore errors and continue running actions: 启用此选项后,指定如果操作失败,那么会继续运行其余操作。
|
如果未启用此属性,并且操作失败,那么产生的行为取决于以下方案:
If the selected action is within a Group action, no actions outside of that Group action are affected. |
Retry if failed: 启用此选项后,指定如果操作失败,那么 Integration Service 会尝试再次运行操作。
Maximum retries: 指定 Integration Service 将会再次尝试运行操作的最大次数。 Available when Retry if failed is enabled.
Retry interval: 指定 Integration Service 将在操作失败后,尝试再次运行操作之前等待的最大时间。 Available when Retry if failed is enabled.