ProcessExecutor engine = Processors.newProcessExecutor(2);
// quick map of inputs
Map<String,Object> input = new KVP("geom", geom);
Progress working = engine.submit(process, input );
// you could do other stuff whle working is doing its thing
if( working.isCancelled() ){
return;
}
Map<String,Object> result = working.get(); // get is BLOCKING
Geometry octo = (Geometry) result.get("result");
System.out.println( octo );
// octo end
}