Select Case |
通过“Select Case”操作可以创建一个或多个“Case”子操作和一个“默认”操作,并指定 Integration Service 将会评估来确定执行以下哪个操作的变量。 “Case”操作和“默认”操作本身与“组”操作类似,类似之处在于当执行父“Case”或“默认”操作时,可以包含执行的任意数量的子操作。
|
The Case and Default actions are the only subactions that are available for the Select Case action. However, the Case and Default actions can each have as many subactions as you require. |
You can configure the following properties for the Select Case action:
操作
名称: 一种只读属性,用于指定操作名称。 The variable that is listed in the name field updates to the variable that you specify in the Cases section of the property page.
描述: 用于保存操作的描述。
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.
Case
Select case using variable: Specifies the name of the variable that the Integration Service will evaluate to determine which Case action to execute. 键入一个仅用于此操作的唯一变量名称。 Alternatively, click to expand the dropdown list and select a recently used variable, or add a variable.
添加 Case: 单击可向“Case”表中添加新的“Case”子操作。 同时也会将“Case”操作添加到左侧“导航”窗格中。
Case 表: 列出每个创建的“Case”操作以及 Integration Service 将会执行每个操作的条件。
|
也可以在属性页中为“Case”操作本身指定“Case”操作的条件。 Click the Case action that you want in the left Navigation Plane to open its property page. 所做的更改会更新到“Case”和“Select Case”属性页中。 |
Case: Case 名称反映 Case 条件。
条件: 单击 可为条件选择关系操作符,然后再为该条件输入值。
: 删除“Case”操作。
为所有其他值指定默认 Case: 启用此选项后,会将一个“默认”子操作添加到左侧的“导航”窗格中。 这是一个专门的操作,不包含任何指定条件的选项。 这是一个 Integration Service 将会在没有任何条件满足您所创建的“Case”操作的要求时执行的操作。
用户帐户
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. |