I know that dyanmic finders in grails only support 2 parameters eg.
artifacts = Artifact.findAllByDocumentAndArtifactType(document,artifactType,[max:limit, offset:startIndex]);
So to use more than 3 arguments I found this example and it works. However I need to use the max and offset operators.
artifacts = Artifact.findAllWhere(document:document,artifactType:artifactType,status:null,[max:limit, offset:startIndex]);
This however returns the entire list and not the limit asked for. Does the operator work for findAllwhere? How to use it or limit my findings withing a certain range?