Select Case |
The Select Case action enables you to create one or more Case subactions and a single Default action and to specify a variable that the Integration Service evaluates to determine which of those actions to execute. The Case and Default actions themselves are similar to the Group action in that they can contain any number of subactions that are executed when the parent Case or Default action is executed.
|
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:
Action
Name: A read-only property that specifies the name of the 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.
Description: Allows you to save a description for the action.
Run Action: Allows you to specify how often you want to run the action.
Always: Specifies that the Integration Service will run the action each time it runs the integration.
Never: Specifies that the Integration Service will not run the action when it runs the integration.
Conditionally, based on variable: Specifies that the Integration Service will run the action only when a selected variable meets a specified condition. Use this option in situations where there is only one condition that determines whether or not the action will run. Once you have enabled this option, you can create the conditional statement in the input box provided.
Conditionally, based on expression: Specifies the conditions under which the Integration Service will run the action. Use this option for situations that require more than one conditional statement. Once you have enabled this option, you can create the conditional expression in the input box provided by creating the desired conditional statements. 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.
Cases
Select case using variable: Specifies the name of the variable that the Integration Service will evaluate to determine which Case action to execute. Enter a unique variable name that is used only for this action. Alternatively, click to expand the dropdown list and select a recently used variable, or add a variable.
Add Case: Click to add a new Case subaction to the Cases table. Also adds the Case action to the left Navigation Pane.
Cases table: Lists each of the Case actions that you created and the condition under which the Integration Service will execute each one.
|
You can also specify the condition for a Case action on the property page for the Case action itself. Click the Case action that you want in the left Navigation Plane to open its property page. Changes are updated on both the Case and the Select Case property pages. |
Case: The case name reflects the case condition.
Condition: Click to select the relational operator for the condition, and then enter the values for the condition.
: Deletes the Case action.
Specify default case for all other values: When you select this option, a Default subaction is added to the left Navigation Pane. This is a specialized action that does not include an option for specifying a condition. This is the action that the Integration Service will execute when none of the conditions are met for the Case actions that you created.
User Account
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.
Specify user credentials: When enabled, the action runs using the credentials specified.
Error Handling and Diagnostics
Ignore errors and continue running actions: When enabled, specifies that if the action fails, the remaining actions will continue to run.
|
When this property is not enabled and the action fails, the resulting behavior depends on the following scenarios:
If the selected action is within a Group action, no actions outside of that Group action are affected. |