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;
}

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 ; }
if task completed success or failure from response .
