docs: public int clearAllErrors() {
          List<ErrorInfo> errors = 
          		commandService.execute(new org.jbpm.shared.services.impl.commands.QueryStringCommand<List<ErrorInfo>>("select e from ErrorInfo e"));
  
          commandService.execute(new org.jbpm.shared.services.impl.commands.RemoveObjectCommand(errors.toArray()));
  
          return errors.size();
      }