Other Metadata Methods

In addition to runtime parameters, exits support a metadata interface to permit their setup using the console.

The Wizard tools provided to construct exit frameworks automatically generate these metadata methods to describe the component. Usually, there is no reason to modify this code. The descriptions of the most common metadata methods are provided in the following list.

The simplest method to test this is to use the following Java call:

Thread.currentThread()isInterrupted() 

You can then escape the current adapter if it is true. Do not reset the interrupted flag, as other threads may need to interrogate it. Proper use of this facility is discussed in relevant Java documentation.

If the exit implements the cancel() method, it returns true, else returns false. This method will be called immediately prior to the server calling cancel(). There may be phases of your exit that can be safely cancelled, and others that cannot. You can control whether the cancel() will be called by returning the appropriate result. The default is false.

The thread isInterrupted() call is not masked, but the exit can elect to test it at appropriate times.