QapJava.
Indicates that the Java class successfully completed its actions. You must call either the success method or the failure method in your Java class.
QapJava.success();
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.
import segue.qapjava.QapJava; ... OBJECT objRef; ... objRef = QapJava.getObject(); if (objRef == null) QapJava.failure("Couldn't find object"); else { ... QapJava.success(); ... }