Hitachi

JP1 Version 11  JP1/Automatic Operation Service Template Developer's Guide 


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.

Note that the return value of the step that uses a service component is always 0.

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)

[Figure]

  • 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

[Figure]

  • 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 service components and the plug-ins that control the following flows: