code: public boolean ifTaskCompletedSuccessOrFailureFromResponse(
              ResponseOnSingeRequest myResponse) {
  
          boolean isCompleted = false;
          try {
  
              if (myResponse == null || myResponse.isFailObtainResponse()) {
                  return isCompleted;
              }
  
              String responseBody = myResponse.getResponseBody();
              if (responseBody.matches(successRegex)
                      || responseBody.matches(failureRegex)) {
                  isCompleted = true;
              }
  
          } catch (Exception t) {
              logger.error("fail " + t);
  
          }
          return isCompleted;
      }
docs: If task completed success or failure from response.
  
  @param myResponse
  the my response
  @return true, if successful