The Branch by Property Value Plug-in branches the flow of processing based on service property values.
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. The result of the comparison determines which step Ops Center Automator runs next.
This Branch by Property Value Plug-in allows you to select which step to run next based on the return code of the preceding step.
This plug-in connects to two branch destination steps: A succeeding step, and a step that is only run when the judgment condition is met. If the input value matches the condition, Ops Center Automator runs the branch destination step and the succeeding step, in that order. If the input value does not match the conditions, Ops Center Automator runs the succeeding step only.
This plug-in combines the functionality of a test value plug-in and a Branch by Returncode plug-in.
The following figure shows how the Branch by Property Value Plug-in is used.
Cautionary notes
- When you run this plug-in, the information output to the task log reflects the execution of the test value plug-in. The Branch by Property Value Plug-in does not contribute to the task log.
- If a task is stopped while the plug-in is running, the task enters Completed status after the Branch by Property Value Plug-in finishes processing.
Return codes
The Branch by Property Value Plug-in generates the following return codes:
Return Code | Description |
---|---|
0 | The plug-in returns 0 when:
|
1 | The plug-in returns 1 when:
|
80 | The plug-in returns 80 when task execution is stopped. |
Property list
The following properties are available for the Branch by Property Value Plug-in:
Property key | Property name | Description | I/O type |
---|---|---|---|
condition R | Condition | Specify the branch 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.
The value is mapped to value1 in the condition property. The value in this property takes effect when value1 is specified in the condition property. |
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 |