Skip to content

Commit

Permalink
MID-8842 ninja - initial objects recompute task added to repository a…
Browse files Browse the repository at this point in the history
…t the end - now working
  • Loading branch information
1azyman committed Sep 11, 2023
1 parent 89d8810 commit b9839a2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import java.nio.charset.StandardCharsets;
import java.util.*;

import com.evolveum.midpoint.ninja.util.BasicLightweightIdentifierGenerator;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.springframework.core.io.FileSystemResource;
Expand Down Expand Up @@ -366,6 +368,7 @@ private PrismObject<TaskType> createRecomputeTask(List<ObjectReferenceType> refs
task.setOid(UUID.randomUUID().toString());
task.setName(new PolyStringType("Initial objects recompute after upgrade to 4.8"));
task.setExecutionState(TaskExecutionStateType.RUNNABLE);
task.setTaskIdentifier(new BasicLightweightIdentifierGenerator().generate().toString());

task.setOwnerRef(new ObjectReferenceType()
.oid(SystemObjectsType.USER_ADMINISTRATOR.value())
Expand Down

0 comments on commit b9839a2

Please sign in to comment.