3.4.4 Overview of subsequent step conditions
You can set whether to execute a subsequent step based on the return value of the previous step.
In most situations, the return value of the step is the same as the return value of the plug-in. For details about the relationship between the return values of steps and plug-ins, see 6.4.10 Relationship of command and script return values to the return values of plug-ins and steps.
-
0: The steps in the service component ended normally.
-
1: A step in the service component ended with a warning. No steps ended abnormally.
-
2: A step in the service component ended abnormally.
Types of subsequent step conditions:
- Determine the return value based on the threshold
The following figures give examples of setting judgment values and warning values.
Figure 3‒6: When judgment value is 0 and no warning value is set (default) If the return value is equal to or less than the judgment value, the subsequent step is executed (normal termination).
If the return value is greater than the judgment value, the subsequent step is not executed (abnormal termination).
Figure 3‒7: When judgment value is 6 and warning value is 2 If the return value is equal to or less than the judgment value, the subsequent step is executed (normal termination). However, if the return value is equal to or greater than the warning value and equal to or less than the judgment value, the subsequent step is executed and the task terminates with a warning. In this case, the task status appears as Failed (after the task has finished) or In Progress (with Error) (while the task is still running) to indicate that the warning value was exceeded. In the Flow area, the step is recorded as having terminated with a warning. When you specify a warning value, specify a value that is equal to or less than the judgment value. You do not need to specify a warning value.
If the return value is larger than the judgment value, the subsequent step is not executed (abnormal termination).
- Always succeed regardless of return value
Subsequent steps are always executed, regardless of the return value of the plug-in.
- Always fail regardless of return value
The step ends abnormally regardless of the return value of the plug-in. Subsequent steps are not executed.
Plug-ins for which subsequent step conditions cannot be set
You cannot specify subsequent step conditions for the plug-ins following flows:
Branch by returncode plug-in
Test value plug-in
Interval plug-in
Abnormal-end plug-in
Branch by property value plug-in