The Test Value Plug-in compares service property values and returns 0 if the values match the conditions.
The plug-in compares the value of a service property, the value of a reserved property, a literal string, or any combination of these values against a specified value. If the condition is met, the plug-in returns 0.
By using this plug-in together with a Branch by ReturnCode Plug-in, you can select the steps in a flow based on a character string.
The following figure shows how the Test Value Plug-in is used.
Cautionary notes
- If a task is stopped while a plug-in is running, the task enters Completed status after the Test Value Plug-in finishes processing.
Return codes
The Test Value Plug-in generates the following return codes:
Return Code | Description |
---|---|
0 | The value matched the condition. Alternatively, 0 is specified in the defaultReturnCode property. |
1 | The value did not match the condition. Alternatively, 1 is specified in the defaultReturnCode property. |
63 | Condition failed. 63 is specified in the defaultReturnCode property. |
65 | The connection with the Ops Center Automator server failed. For example, the Ops Center Automator server might have stopped while the plug-in was running. |
66 | The following user is mapped to the
Ops Center Automator user:
|
68 | No information about the target job execution ID exists. |
69 | An environment variable of the task-processing engine cannot be acquired. |
80 | Task execution has stopped. |
81 | The plug-in was called in a status that is not valid. |
82 | The request message from the task-processing engine cannot be correctly parsed. |
83 | The environment of the Ops Center Automator server is corrupted. |
84 | Information about the specified plug-in cannot be obtained. |
86 | The specified property value is not valid. |
127 | Another error has occurred. |
Property list
The following properties are available for the Test Value Plug-in:
Property key | Property name | Description | I/O type |
---|---|---|---|
condition R | Condition | Specify the judgment condition for the valueX property. You can select from the following conditions:
The default value is valueX=value1. |
Input |
valueX R | ValueX | Specify a value as the basis for comparison, using no more than 1,024 characters. You can use the following formats individually or combined.
|
Input |
value1 | Value1 | Specify the value against which to compare the valueX property, using no more than 1,024 characters. You can use the following formats individually or together.
|
Input |
value2 | Value2 | Specify the value against which to compare the valueX property, using no more than 1,024 characters. You can use the following formats individually or together.
The value in this property takes effect when value2 is specified in the condition property. |
Input |
defaultReturnCode R | Default Return Code On Error | This property specifies the value returned by the plug-in when a numerical comparison is specified in the condition property, and a value that cannot be compared on a numerical basis is specified in any of the valueX, value1, and value2 properties.
The default value is 63. |
Input |
R: Required |
Example of property specification
A test value plug-in determines whether an input value is within a specified range of values.
The following describes the range of valid condition values, using the following values of the condition, value1, and value2 properties as examples.
A. The input value is greater than or equal to 25 and less than 75
condition (Condition): ReturnCode>=value1 AND ReturnCode<value2
value1 (Value1): 25
value2 (Value2): 75
B. The input value is less than 25, or 75 or greater
condition (Condition): ReturnCode<value1 OR ReturnCode>=value2
value1 (Value1): 25
value2 (Value2): 75
The following figure shows the range of return codes that match each condition.