Skip to content

Commit

Permalink
fixed DEFAULT_MAX_SEARCH_RESULT
Browse files Browse the repository at this point in the history
issue #586
  • Loading branch information
rsoika committed Jun 20, 2024
1 parent c405341 commit 894b576
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.imixs.workflow.ItemCollection;
import org.imixs.workflow.SignalAdapter;
import org.imixs.workflow.engine.DocumentService;
import org.imixs.workflow.engine.index.SearchService;
import org.imixs.workflow.engine.plugins.SplitAndJoinPlugin;
import org.imixs.workflow.exceptions.AdapterException;
import org.imixs.workflow.exceptions.PluginException;
Expand Down Expand Up @@ -109,7 +110,8 @@ public ItemCollection execute(ItemCollection workitem, ItemCollection event)
logger.info("...anonymise ingoing references...");
String searchTerm = "($workitemref:\"" + workitem.getUniqueID() + "\" )";
try {
List<ItemCollection> refList = documentService.find(searchTerm, 99999, 0);
List<ItemCollection> refList = documentService.find(searchTerm,
SearchService.DEFAULT_MAX_SEARCH_RESULT, 0);
for (ItemCollection refWorkitem : refList) {
// verify if not yet anonymized....
if (!outgoinReferences.contains(refWorkitem.getUniqueID())) {
Expand Down

0 comments on commit 894b576

Please sign in to comment.