Hitachi

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


6.4.10 Relationship of command and script return values to the return values of plug-ins and steps

In most circumstances, the return value of a command or script serves as the return value of the plug-in. When content plug-ins and general command plug-ins execute commands and scripts on connection destinations, the return value of the command or script is used as the return value of the plug-in. This does not apply to the terminal command plug-in, which does not set the return value of the command or script as the return value of the plug-in.

You can use values in the range from 0 to 63 as the return value of a command or script. If the command or script returns a value outside this range, the plug-in returns 64, indicating that the returned value was outside the 0 to 63 range. If the command or script could not be executed, the plug-in returns a value of 65 or higher that indicates the cause of the failure.

Although the return value of the plug-in is generally the return value of the step, the values might differ in certain circumstances, such as an error occurring during plug-in execution. In this case, take the appropriate action based on the return value of the step.