Compare Values

 

Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator

The Compare Values activity compares two text values or two numerical values and then determines whether or not they are equal. This activity can also be used to test error messages or numbers against known issues and automatically route the runbook to the appropriate activity.

Before you configure the Compare Values activity, you need to determine what type of values you want to compare.

Use the following information to configure the Compare Values activity.

General Tab

SettingsConfiguration Instructions
NameType a descriptive name for the activity.
DescriptionType a detailed description of the actions of the activity.
TypeSelect the Type from the drop-down list that matches the server you want to monitor. The options include the following:

- Compare Strings
- Compare Numeric Values

Configuration instructions for each Details tab Type are listed in the following tables.

Details Tab Compare Strings

SettingsConfiguration Instructions
TestType the first text, select how you want the first to be compared to the second text, and then type the second text. From the drop-down menu, when selecting the matches the pattern or does not match pattern comparisons, use the wildcards ? and * to specify the pattern.
Case sensitive testSelect to cause the comparison to be case sensitive.

Details Tab Compare Numeric Values

SettingsConfiguration Instructions
Test thatType the first number, select how you want the first to be compared to the second number, and then type the second number.

Published Data

The following table lists the published data items.

ItemDescription
String to compareThe first string that was entered for the comparison. This published data is only available when Compare Strings is selected on the General tab.
String to compare toThe second string that was entered for the comparison. This published data is only available when Compare Strings is selected on the General tab.
Case sensitive comparisonDetermines whether the comparison was case sensitive. This value can be either true or false.
Value to compareThe first value that was entered for the comparison. This published data is only available when Compare Numeric Values is selected on the General tab.
Value to compare toThe second value that was entered for the comparison. This published data is only available when Compare Numeric Values is selected on the General tab.
Comparison resultThe result of the comparison. This value will be true if the two strings or numeric values match and false otherwise.
Show: