Top
Systemwalker Runbook Automation Studio User's Guide
Systemwalker

6.4.15 Calculate Filter

This filter takes values in the results of an operation component or in filter output (fixed values, variable values, or execution result values (integers)) and adds or subtracts them.

Calculation method

Select one of the following operations:

  • Add (Default)

  • Subtract

Operation value type

Select the type of value for addition or subtraction:

  • Fixed value (Default)

  • Variable value

  • Execution results value

Addition value/Subtraction value

The title of the group changes from Calculation method to either Addition value or Subtraction value.

Fixed value

Enter the value (number) to be added or subtracted. The range is from 0 to 2147483647.

An error occurs on executing the filter if this field is empty.

Variable value

Select the variable that holds the value for addition or subtraction. The types of variables displayed in the list are STRING and INTEGER only.

Execution results value

Select the execution result that holds the value for addition or subtraction.

A list of nodes (operation component nodes) that can be selected is displayed in the Node Name combo box. When you select the node name, a list of execution results for the node is displayed in Execution results.

Note

  • Operations can only be performed on integers.

  • The range for operations is between -2147483648 and 2147483647. An overflow occurs if 1 is added to 2147483647 and the result of the operation will be -2147483648.

  • When a STRING-type variable (UDA) is specified, the variable value may not include characters other than numbers. The filter will end in an error if characters other than numbers are included.

  • The execution values may not include characters other than numbers. The filter will end in an error if characters other than numbers are included.

Precautions when Testing Filters

  • If Operation value type is set to Variable value:

    The test will use the value assigned in the Set test variables dialog box (*1), or 0 if no value is assigned.

  • If Operation value type is set to Execution result value:

    The test will use the value assigned in theSet test variables dialog box (*1), or 0 if no value is assigned.

  • When the filter is applied on the Management Server, these variables (UDA) or execution results are replaced with the stored values.

*1: Refer to "6.3.2 Testing Filters" for information on the Set test variables dialog box.

Example 1:

Input:

1

Types of operation:

Addition

Types of operation value:

Fixed value

Added value:

1

Output:

2

Example 2:

Input:

1

Types of operation:

Subtraction

Types of operation value:

Fixed value

Subtraction value:

1

Output:

0

Example 3:

Input:

0

Types of operation:

Subtraction

Types of operation value:

Fixed value

Subtraction value:

1

Output:

-1

Example 4: When 1 has been set in the variable (AddValue)

Input:

1

Types of operation:

Addition

Types of operation value:

Variable value

Variable name:

AddValue

Output:

2

Example 5: When 1 has been set in the execution result (returnCode)

Input:

1

Types of operation:

Addition

Types of operation value:

Execution results value

Node name:

Execute xxxx

Execution result

returnCode

Output:

2