ENDOF

System Testing Supervisor Script Language.

Purpose

ENDOF is a Boolean function that tests whether <process> has ended or not. ENDOF is true if the execution of <process> has ended.

Syntax

ENDOF ( <process> )

<process> is a logical process name, defined with an EXECUTE statement.

Description

You can use the ENDOF function in expressions analyzed by the supervisor.

ENDOF is a non-blocking operator.

If an unknown process identifier is specified, an error is generated during analysis of the supervision script before it is executed.

Note If an EXECUTE instruction is placed inside a WHILE loop, the process identifier denotes a group of processes. In this case, an ENDOF expression with this process identifier is true when all the processes associated with the identifier have ended.

Example

...

i = 1

WHILE i < 10

EXECUTE proc_group IS machine:program

i = i + 1

END WHILE

...

IF ENDOF ( proc_group ) THEN

PRINT "end of execution of all processes"

END IF

Related Topics

EXECUTE | IF | STATUS | WHILE