- All Known Subinterfaces:
- All Known Implementing Classes:
public interface ProcessA Process that returns a result and reports progress. Implementors define a single method called execute that accepts the inputs to process and a ProgressListener.
The Process interface is similar to
java.lang.Callable, in that both are designed for classes whose instances are potentially executed by another thread. A Callable, however, does not report progress.
Executorsclass contains utility methods to convert from other common forms to Callable classes.
- See Also:
/** Used to process inputs and is reported using a ProgressListener. Results are available after being run.
Map<String,Object> execute(Map<String,Object> input, ProgressListener monitor) throws ProcessExceptionExecute this process with the provided inputs.
input- Input parameters for this process
monitor- listener for handling the progress of the process
- Map of results, (@see ProcessFactory for details), or null if canceled