public boolean isFinished(final long procId) {
    return !procedures.containsKey(procId);
  }
Return true if the procedure is finished. The state may be "completed successfully" or "failed
and rolledback". Use getResult() to check the state or get the result data.
@param procId the ID of the procedure to check
@return true if the procedure execution is finished, otherwise false.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureExecutor.java