Class SimpleProcess

  • All Implemented Interfaces:
    Process

    public abstract class SimpleProcess
    extends AbstractProcess
    Provide an implementation for a simple process (ie so quick and easy it is not going to need to report progress as it goes).
    Author:
    gdavis
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Map<String,​Object> input  
      protected Map<String,​Object> result  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      Map<String,​Object> execute​(Map<String,​Object> input, ProgressListener monitor)
      Execute this process with the provided inputs.
      protected Object get​(String key)  
      abstract void process()
      Implement your own process here.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • input

        protected Map<String,​Object> input
      • result

        protected Map<String,​Object> result
    • Constructor Detail

    • Method Detail

      • execute

        public final Map<String,​Object> execute​(Map<String,​Object> input,
                                                      ProgressListener monitor)
        Description copied from interface: Process
        Execute this process with the provided inputs.
        Parameters:
        input - Input parameters for this process
        monitor - listener for handling the progress of the process
        Returns:
        Map of results, (@see ProcessFactory for details), or null if canceled
      • process

        public abstract void process()
                              throws Exception
        Implement your own process here.
        Throws:
        Exception
      • get

        protected Object get​(String key)