Skip to content

Commit

Permalink
AbstractWfTestPolicy fix for new repo (copy of result before sort)
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Sep 14, 2021
1 parent 26c8929 commit f73454e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/*
* Copyright (c) 2010-2019 Evolveum and contributors
* Copyright (C) 2010-2021 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/

package com.evolveum.midpoint.wf.impl;

import static java.util.Collections.singleton;
Expand Down Expand Up @@ -178,7 +177,9 @@ protected <F extends FocusType> OperationResult executeTest(TestDetails testDeta
.item(T_PARENT, F_REQUESTOR_REF).resolve()
.build();

List<CaseWorkItemType> workItems = modelService.searchContainers(CaseWorkItemType.class, getOpenItemsQuery(), options1, opTask, result);
List<CaseWorkItemType> workItems = new ArrayList<>( // to assure modifiable result list
modelService.searchContainers(CaseWorkItemType.class,
getOpenItemsQuery(), options1, opTask, result));

displayDumpable("changes by state after first clockwork run", workflowManager
.getChangesByState(rootCase, modelInteractionService, prismContext, opTask, result));
Expand Down

0 comments on commit f73454e

Please sign in to comment.