Success Method

Class

QapJava.

Action

Indicates that the Java class successfully completed its actions. You must call either the success method or the failure method in your Java class.

Syntax

QapJava.success();

Notes

The success method passes the boolean value TRUE to the InvokeJava method to indicate the successful completion of the Java class. Once success is called, the InvokeJava method terminates.

Example

import segue.qapjava.QapJava;
...
OBJECT objRef;
...
objRef = QapJava.getObject();
if (objRef == null)
 QapJava.failure("Couldn't find object");
else {
...
 QapJava.success();
...
}