code: public boolean isFinishing() {
  
  		final Iterator<ExecutionVertex> it = this.vertices.iterator();
  		while (it.hasNext()) {
  
  			final ExecutionState state = it.next().getExecutionState();
  			if (state != ExecutionState.FINISHING && state != ExecutionState.FINISHED) {
  				return false;
  			}
  		}
  
  		return true;
  	}
docs: Checks if the pipeline is currently finishing its execution, i.e. all vertices contained in the pipeline have
  switched to the <code>FINISHING</code> or <code>FINISHED</code> state.
  
  @return <code>true</code> if the pipeline is currently finishing, <code>false</code> otherwise