protected void fail(S state,Throwable t){
  ServiceUtils.logSevere(this,t);
  ServiceUtils.logInfo(this,"Failing task service for workflow %s",state.documentSelfLink);
  try {
    TaskServiceUtils.fail(this,ServiceDocumentUtils.getTaskServiceState(state),t,null);
  }
 catch (  Throwable throwable) {
    ServiceUtils.logSevere(this,"Failed to fail workflow: %s",throwable.toString());
  }
}

protected void fail ( S state , Throwable t ) { ServiceUtils . logSevere ( this , t ) ; ServiceUtils . logInfo ( this , "Failing task service for workflow %s" , state . documentSelfLink ) ; try { TaskServiceUtils . fail ( this , ServiceDocumentUtils . getTaskServiceState ( state ) , t , null ) ; } catch ( Throwable throwable ) { ServiceUtils . logSevere ( this , "Failed to fail workflow: %s" , throwable . toString ( ) ) ; } }
moves the service to the failed state .
